[or-cvs] r10187: backport candidate: seems to me that r10153 won't work witho (tor/trunk/src/or)

arma at seul.org arma at seul.org
Mon May 14 08:09:16 UTC 2007


Author: arma
Date: 2007-05-14 04:09:12 -0400 (Mon, 14 May 2007)
New Revision: 10187

Modified:
   tor/trunk/src/or/routerlist.c
Log:
backport candidate: seems to me that r10153 won't work without
this patch too.


Modified: tor/trunk/src/or/routerlist.c
===================================================================
--- tor/trunk/src/or/routerlist.c	2007-05-13 20:24:43 UTC (rev 10186)
+++ tor/trunk/src/or/routerlist.c	2007-05-14 08:09:12 UTC (rev 10187)
@@ -2783,9 +2783,6 @@
     return 0;
   }
 
-  if (source != NS_FROM_CACHE && trusted_dir)
-    trusted_dir->n_networkstatus_failures = 0;
-
   found = 0;
   for (i=0; i < smartlist_len(networkstatus_list); ++i) {
     networkstatus_t *old_ns = smartlist_get(networkstatus_list, i);
@@ -2833,6 +2830,9 @@
     }
   }
 
+  if (source != NS_FROM_CACHE && trusted_dir)
+    trusted_dir->n_networkstatus_failures = 0;
+
   if (!found)
     smartlist_add(networkstatus_list, ns);
 



More information about the tor-commits mailing list