]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Update a comment and undef an identifier
authorArlo Breault <arlolra@gmail.com>
Sun, 22 Jun 2014 20:48:29 +0000 (13:48 -0700)
committerNick Mathewson <nickm@torproject.org>
Tue, 24 Jun 2014 00:28:34 +0000 (20:28 -0400)
 * Trac #11452

src/or/routerlist.c

index 2c0f193672e4f342c16b0ccabda9233c08c4f4f3..391a31a9da77ef216a2e92b0b178e913c180365d 100644 (file)
@@ -448,9 +448,10 @@ trusted_dirs_flush_certs_to_disk(void)
   trusted_dir_servers_certs_changed = 0;
 }
 
-/** Remove all v3 authority certificates that have been superseded for more
- * than 48 hours.  (If the most recent cert was published more than 48 hours
- * ago, then we aren't going to get any consensuses signed with older
+/** Remove all expired v3 authority certificates that have been superseded for
+ * more than 48 hours or, if not expired, that were published more than 7 days
+ * before being superseded. (If the most recent cert was published more than 48
+ * hours ago, then we aren't going to get any consensuses signed with older
  * keys.) */
 static void
 trusted_dirs_remove_old_certs(void)
@@ -488,6 +489,7 @@ trusted_dirs_remove_old_certs(void)
       } SMARTLIST_FOREACH_END(cert);
     }
   } DIGESTMAP_FOREACH_END;
+#undef DEAD_CERT_LIFETIME
 #undef OLD_CERT_LIFETIME
 
   trusted_dirs_flush_certs_to_disk();