diff options
author | Roger Dingledine <arma@torproject.org> | 2007-05-21 12:35:33 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2007-05-21 12:35:33 +0000 |
commit | 0868a4004b33e4f03f4094faa19717a2047c744c (patch) | |
tree | dab9f7e86882c210456988eb4226003c236d6f88 /src/or/routerlist.c | |
parent | 9091d0c49a57b6263fd9a76fed54b6e8d61ac442 (diff) | |
download | tor-0868a4004b33e4f03f4094faa19717a2047c744c.tar.gz tor-0868a4004b33e4f03f4094faa19717a2047c744c.zip |
backport r10187
svn:r10234
Diffstat (limited to 'src/or/routerlist.c')
-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 bb2b7d4e00..f02feb76a7 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -2517,9 +2517,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); @@ -2567,6 +2564,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); |