From d95e7c7d67134b9b964d49cf8c2bdbf805a615d8 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Mon, 10 Dec 2007 16:40:14 +0000 Subject: also clear the hsdir status flag in routerinfo_t when the relay is no longer listed in the relevant networkstatus document. svn:r12752 --- src/or/networkstatus.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/or/networkstatus.c') diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c index 605c8d5f76..3b4f9d31b0 100644 --- a/src/or/networkstatus.c +++ b/src/or/networkstatus.c @@ -1590,12 +1590,8 @@ routers_update_status_from_consensus_networkstatus(smartlist_t *routers, if (!namingdir) router->is_named = 0; if (!authdir) { - if (router->purpose == ROUTER_PURPOSE_GENERAL) { - router->is_valid = router->is_running = - router->is_fast = router->is_stable = - router->is_possible_guard = router->is_exit = - router->is_bad_exit = 0; - } + if (router->purpose == ROUTER_PURPOSE_GENERAL) + router_clear_status_flags(router); } continue; } -- cgit v1.2.3-54-g00ecf