[or-cvs] fix a bootstrapping check we ignored that prevents us from ...

arma at seul.org arma at seul.org
Fri Jun 9 02:45:41 UTC 2006


Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or

Modified Files:
	routerlist.c 
Log Message:
fix a bootstrapping check we ignored that prevents us from running
with only one dir authority.


Index: routerlist.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/routerlist.c,v
retrieving revision 1.517
retrieving revision 1.518
diff -u -p -d -r1.517 -r1.518
--- routerlist.c	8 Jun 2006 22:36:13 -0000	1.517
+++ routerlist.c	9 Jun 2006 02:45:39 -0000	1.518
@@ -3442,10 +3442,8 @@ update_router_descriptor_client_download
     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.");
   }



More information about the tor-commits mailing list