]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
fix a bootstrapping check we ignored that prevents us from running
authorRoger Dingledine <arma@torproject.org>
Fri, 9 Jun 2006 02:45:39 +0000 (02:45 +0000)
committerRoger Dingledine <arma@torproject.org>
Fri, 9 Jun 2006 02:45:39 +0000 (02:45 +0000)
with only one dir authority.

svn:r6570

src/or/routerlist.c

index c0e138823b772f530fb6606d36417c3b20a37db3..bbed15462ce5949f8faee30357def55b1119ad21 100644 (file)
@@ -3442,10 +3442,8 @@ update_router_descriptor_client_downloads(time_t now)
     return;
   }
 
-  /* XXX here's another magic 2 that probably should be replaced
-   * by <= smartlist_len(trusted_dir_servers)/2
-   * or by a function returning same.  -- weasel */
-  if (networkstatus_list && smartlist_len(networkstatus_list) < 2) {
+  if (networkstatus_list && smartlist_len(networkstatus_list) <=
+                            smartlist_len(trusted_dir_servers)/2) {
     log_info(LD_DIR,
              "Not enough networkstatus documents to launch requests.");
   }