]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
r15859@catbus: nickm | 2007-10-16 13:09:28 -0400
authorNick Mathewson <nickm@torproject.org>
Tue, 16 Oct 2007 17:21:01 +0000 (17:21 +0000)
committerNick Mathewson <nickm@torproject.org>
Tue, 16 Oct 2007 17:21:01 +0000 (17:21 +0000)
 Reset the is_named flag only on non-naming directories.

svn:r11989

src/or/networkstatus.c

index ae55ee5b4774b67b5c892eb57e0ebf6344b88687..6e770af5dbc90a5e72e2f189fe7fbbe0dfd0cee4 100644 (file)
@@ -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 =