]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Clear up a comment about when an assertion could fire
authorNick Mathewson <nickm@torproject.org>
Tue, 19 Feb 2013 21:23:58 +0000 (16:23 -0500)
committerNick Mathewson <nickm@torproject.org>
Tue, 19 Feb 2013 21:23:58 +0000 (16:23 -0500)
Resolves ticket 6164

src/or/dirserv.c

index badacd683d39495e0f488bbb25a8de738d61f894..49fee88a97c103375b41e99417aa4380b231e000 100644 (file)
@@ -2216,9 +2216,10 @@ routerstatus_format_entry(char *buf, size_t buf_len,
         return -1;
       }
 
-      /* This assert can fire for the control port, because
+      /* This assert could fire for the control port, because
        * it can request NS documents before all descriptors
-       * have been fetched. */
+       * have been fetched. Therefore, we only do this test when
+       * format != NS_CONTROL_PORT. */
       if (tor_memneq(desc->cache_info.signed_descriptor_digest,
             rs->descriptor_digest,
             DIGEST_LEN)) {