mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
backport candidate: seems to me that r10153 won't work without
this patch too. svn:r10187
This commit is contained in:
parent
5f9d4d0587
commit
37519d993d
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user