]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Rephrase comment in trusted_dirs_load_certs_from_string() to reflect 5595 fix
authorAndrea Shepard <andrea@torproject.org>
Thu, 9 May 2013 16:41:50 +0000 (09:41 -0700)
committerAndrea Shepard <andrea@torproject.org>
Thu, 9 May 2013 17:55:07 +0000 (10:55 -0700)
src/or/routerlist.c

index 14c44ec913d11023d141147d3ba84a9bb64785d2..aa1660f30194c0f3bc344eb302e4b35d7d367db3 100644 (file)
@@ -309,9 +309,13 @@ trusted_dirs_load_certs_from_string(const char *contents, int source,
                from_store ? "cached" : "downloaded",
                ds ? ds->nickname : "an old or new authority");
 
-      /* a duplicate on a download should be treated as a failure, since it
-       * probably means we wanted a different secret key or we are trying to
-       * replace an expired cert that has not in fact been updated. */
+      /*
+       * A duplicate on download should be treated as a failure, so we call
+       * authority_cert_dl_failed() to reset the download status to make sure
+       * we can't try again.  Since we've implemented the fp-sk mechanism
+       * to download certs by signing key, this should be much rarer than it
+       * was and is perhaps cause for concern.
+       */
       if (!from_store) {
         if (authdir_mode(get_options())) {
           log_warn(LD_DIR,