If we were having problems getting a particular descriptor from the

directory caches, and then we learned about a new descriptor for
that router, we weren't resetting our failure count. Reported
by lodger.


svn:r13047
This commit is contained in:
Roger Dingledine 2008-01-07 08:43:52 +00:00
parent b5e04c92a9
commit 83ac50c2b2
2 changed files with 5 additions and 1 deletions

View File

@ -31,6 +31,10 @@ Changes in version 0.1.2.19 - 2008-01-??
nonstandard integer types.
- Don't try to create the datadir when running --verify-config or
--hash-password. Resolves bug 540.
- If we were having problems getting a particular descriptor from the
directory caches, and then we learned about a new descriptor for
that router, we weren't resetting our failure count. Reported
by lodger.
Changes in version 0.1.2.18 - 2007-10-28

View File

@ -3810,7 +3810,7 @@ routerstatus_list_update_from_networkstatus(time_t now)
memcpy(&rs_out->status, most_recent, sizeof(routerstatus_t));
/* Copy status info about this router, if we had any before. */
if ((rs_old = router_get_combined_status_by_digest(lowest))) {
if (!memcmp(rs_out->status.descriptor_digest,
if (!memcmp(rs_old->status.descriptor_digest,
most_recent->descriptor_digest, DIGEST_LEN)) {
rs_out->n_download_failures = rs_old->n_download_failures;
rs_out->next_attempt_at = rs_old->next_attempt_at;