Selaa lähdekoodia

Fix the never-marked-anything-as-running bug. Now Tor builds circuts again. Woo.

svn:r5080
Nick Mathewson 20 vuotta sitten
vanhempi
commit
538740e362
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      src/or/routerlist.c

+ 2 - 2
src/or/routerlist.c

@@ -2338,8 +2338,8 @@ routers_update_status_from_networkstatus(smartlist_t *routers)
            n_running, n_recent);
 
     router->is_named = (n_named > n_naming/2);
-    if (authdir) {
-      /* We're a non-naming authdir; don't believe others. */
+    if (!authdir) {
+      /* If we're an authdir, don't believe others. */
       router->is_verified = (n_valid > n_statuses/2);
       router->is_running = (n_running > n_recent/2);