mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
Merge remote-tracking branch 'public/bug20270_029' into maint-0.3.0
This commit is contained in:
commit
84c4a2bc3f
6
changes/bug20270
Normal file
6
changes/bug20270
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
o Minor bugfixes (directory authority):
|
||||||
|
- When rejecting a router descriptor because the relay is running an
|
||||||
|
obsolete version of Tor without ntor support, warn about the obsolete
|
||||||
|
tor version, not the missing ntor key. Fixes bug 20270;
|
||||||
|
bugfix on 0.2.9.3-alpha.
|
||||||
|
|
@ -274,6 +274,13 @@ dirserv_router_get_status(const routerinfo_t *router, const char **msg,
|
|||||||
return FP_REJECT;
|
return FP_REJECT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Check for the more usual versions to reject a router first. */
|
||||||
|
const uint32_t r = dirserv_get_status_impl(d, router->nickname,
|
||||||
|
router->addr, router->or_port,
|
||||||
|
router->platform, msg, severity);
|
||||||
|
if (r)
|
||||||
|
return r;
|
||||||
|
|
||||||
/* dirserv_get_status_impl already rejects versions older than 0.2.4.18-rc,
|
/* dirserv_get_status_impl already rejects versions older than 0.2.4.18-rc,
|
||||||
* and onion_curve25519_pkey was introduced in 0.2.4.8-alpha.
|
* and onion_curve25519_pkey was introduced in 0.2.4.8-alpha.
|
||||||
* But just in case a relay doesn't provide or lies about its version, or
|
* But just in case a relay doesn't provide or lies about its version, or
|
||||||
@ -324,9 +331,7 @@ dirserv_router_get_status(const routerinfo_t *router, const char **msg,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return dirserv_get_status_impl(d, router->nickname,
|
return 0;
|
||||||
router->addr, router->or_port,
|
|
||||||
router->platform, msg, severity);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Return true if there is no point in downloading the router described by
|
/** Return true if there is no point in downloading the router described by
|
||||||
|
Loading…
Reference in New Issue
Block a user