mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
the other half of the bugfix: tolerate a trusted dirserver claiming
dirport 0 in its descriptor. svn:r4576
This commit is contained in:
parent
97174b67c2
commit
545c2c6c87
@ -247,8 +247,8 @@ mark_all_trusteddirservers_up(void)
|
|||||||
{
|
{
|
||||||
if (routerlist) {
|
if (routerlist) {
|
||||||
SMARTLIST_FOREACH(routerlist->routers, routerinfo_t *, router,
|
SMARTLIST_FOREACH(routerlist->routers, routerinfo_t *, router,
|
||||||
if (router_digest_is_trusted_dir(router->identity_digest)) {
|
if (router_digest_is_trusted_dir(router->identity_digest) &&
|
||||||
tor_assert(router->dir_port > 0);
|
router->dir_port > 0) {
|
||||||
router->is_running = 1;
|
router->is_running = 1;
|
||||||
router->status_set_at = time(NULL);
|
router->status_set_at = time(NULL);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user