[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r17214: {tor} but to not attempt to download a specific certificate we alr (tor/trunk/src/or)



Author: nickm
Date: 2008-11-07 10:01:49 -0500 (Fri, 07 Nov 2008)
New Revision: 17214

Modified:
   tor/trunk/src/or/routerlist.c
Log:
but to not attempt to download a specific certificate we already have.

Modified: tor/trunk/src/or/routerlist.c
===================================================================
--- tor/trunk/src/or/routerlist.c	2008-11-07 15:01:00 UTC (rev 17213)
+++ tor/trunk/src/or/routerlist.c	2008-11-07 15:01:49 UTC (rev 17214)
@@ -432,8 +432,9 @@
         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,