[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r10187: backport candidate: seems to me that r10153 won't work witho (tor/trunk/src/or)
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] r10187: backport candidate: seems to me that r10153 won't work witho (tor/trunk/src/or)
- From: arma@xxxxxxxx
- Date: Mon, 14 May 2007 04:09:16 -0400 (EDT)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Mon, 14 May 2007 04:09:27 -0400
- Reply-to: or-dev@xxxxxxxxxxxxx
- Sender: owner-or-cvs@xxxxxxxxxxxxx
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);