diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-11-07 15:01:49 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-11-07 15:01:49 +0000 |
commit | 9f1e06bd0e0399800da057c17246f6e11ff45bbb (patch) | |
tree | 8cec9569793eb5ff98980fa10371ea7cb7facaf0 /src/or/routerlist.c | |
parent | bda4ca065c1b6c39e68b0793538c5e5c15890d44 (diff) | |
download | tor-9f1e06bd0e0399800da057c17246f6e11ff45bbb.tar.gz tor-9f1e06bd0e0399800da057c17246f6e11ff45bbb.zip |
but to not attempt to download a specific certificate we already have.
svn:r17214
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r-- | src/or/routerlist.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 3c73c8079f..d68785ff99 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -432,8 +432,9 @@ authority_certs_fetch_missing(networkstatus_t *status, time_t now) cl = get_cert_list(voter->identity_digest); cert = authority_cert_get_by_digests(voter->identity_digest, voter->signing_key_digest); - if (cert && now < cert->expires) { - download_status_reset(&cl->dl_status); + if (cert) { + if (now < cert->expires) + download_status_reset(&cl->dl_status); continue; } if (download_status_is_ready(&cl->dl_status, now, |