diff options
author | Roger Dingledine <arma@torproject.org> | 2007-05-14 08:09:12 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2007-05-14 08:09:12 +0000 |
commit | 37519d993d445b30411762086a39f2c7b8903965 (patch) | |
tree | 9c4199aea8f1ac83fba748fadf6f5409cc4a70da /src | |
parent | 5f9d4d0587e78362134b27ad6e95924cff437bd2 (diff) | |
download | tor-37519d993d445b30411762086a39f2c7b8903965.tar.gz tor-37519d993d445b30411762086a39f2c7b8903965.zip |
backport candidate: seems to me that r10153 won't work without
this patch too.
svn:r10187
Diffstat (limited to 'src')
-rw-r--r-- | src/or/routerlist.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index d14db33a8a..f7eb2e9e5a 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -2783,9 +2783,6 @@ router_set_networkstatus(const char *s, time_t arrived_at, 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 @@ router_set_networkstatus(const char *s, time_t arrived_at, } } + if (source != NS_FROM_CACHE && trusted_dir) + trusted_dir->n_networkstatus_failures = 0; + if (!found) smartlist_add(networkstatus_list, ns); |