diff options
author | Roger Dingledine <arma@torproject.org> | 2007-12-10 16:40:14 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2007-12-10 16:40:14 +0000 |
commit | d95e7c7d67134b9b964d49cf8c2bdbf805a615d8 (patch) | |
tree | 66e1fce08d3f71eecd2c007e567eb9fdc0d0bdad /src/or/networkstatus.c | |
parent | 25a444b69839b097031d7702b9aa1a8c29b44689 (diff) | |
download | tor-d95e7c7d67134b9b964d49cf8c2bdbf805a615d8.tar.gz tor-d95e7c7d67134b9b964d49cf8c2bdbf805a615d8.zip |
also clear the hsdir status flag in routerinfo_t when the relay is no
longer listed in the relevant networkstatus document.
svn:r12752
Diffstat (limited to 'src/or/networkstatus.c')
-rw-r--r-- | src/or/networkstatus.c | 8 |
1 files changed, 2 insertions, 6 deletions
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; } |