aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-10-16 17:21:01 +0000
committerNick Mathewson <nickm@torproject.org>2007-10-16 17:21:01 +0000
commit58ecc39141f708ef2642dad265b25638e3f0bf9d (patch)
tree416f76efba7b74ece274f6ea8c7581ef90d2c481 /src
parentbbff989c1abff562668188d2b841c1da7c61523d (diff)
downloadtor-58ecc39141f708ef2642dad265b25638e3f0bf9d.tar.gz
tor-58ecc39141f708ef2642dad265b25638e3f0bf9d.zip
r15859@catbus: nickm | 2007-10-16 13:09:28 -0400
Reset the is_named flag only on non-naming directories. svn:r11989
Diffstat (limited to 'src')
-rw-r--r--src/or/networkstatus.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c
index ae55ee5b47..6e770af5db 100644
--- a/src/or/networkstatus.c
+++ b/src/or/networkstatus.c
@@ -1173,8 +1173,9 @@ routers_update_status_from_consensus_networkstatus(smartlist_t *routers,
}
if (r>0) {
/* We have no routerstatus for this router. Clear flags and skip it. */
- if (!authdir) {
+ 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 =