diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-10-16 14:25:13 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-10-16 14:25:13 +0000 |
commit | 9ca262583312bcb63ea269cca54e0dfd5e1f56d5 (patch) | |
tree | 4fb7a36e5653d1475ea07aae2503007a92afa863 | |
parent | f3c7eeb4a0c322054ce635937314757dae5f1f48 (diff) | |
download | tor-9ca262583312bcb63ea269cca54e0dfd5e1f56d5.tar.gz tor-9ca262583312bcb63ea269cca54e0dfd5e1f56d5.zip |
r15847@catbus: nickm | 2007-10-16 10:15:07 -0400
Fix the simpler bit of bug 529: update routerinfo_t.is_named from the consensus.
svn:r11983
-rw-r--r-- | src/or/networkstatus.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c index 57d951325f..89e9231d7c 100644 --- a/src/or/networkstatus.c +++ b/src/or/networkstatus.c @@ -1173,6 +1173,7 @@ routers_update_status_from_consensus_networkstatus(smartlist_t *routers, } if (r>0) { /* We have no routerstatus for this router. Skip it. */ + router->is_named = 0; continue; } tor_assert(r==0); @@ -1191,6 +1192,10 @@ routers_update_status_from_consensus_networkstatus(smartlist_t *routers, router->is_possible_guard = rs->is_possible_guard; router->is_exit = rs->is_exit; router->is_bad_exit = rs->is_bad_exit; + if (rs->is_named && !strcasecmp(router->nickname, rs->nickname)) + router->is_named = 1; + else + router->is_named = 0; } if (router->is_running && ds) { download_status_reset(&ds->v2_ns_dl_status); |