backport candidate: seems to me that r10153 won't work without

this patch too.


svn:r10187
This commit is contained in:
Roger Dingledine 2007-05-14 08:09:12 +00:00
parent 5f9d4d0587
commit 37519d993d

View File

@ -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);