aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-02-19 16:23:58 -0500
committerNick Mathewson <nickm@torproject.org>2013-02-19 16:23:58 -0500
commit5d2b2b9ede6ea0f247b5505d7e30a622c312e9fe (patch)
treeeffd05d10930470a2fa6da7b6f624e9b75393687 /src/or/dirserv.c
parent337e32f5b8f5f3b310da20bf0135f17d06efb3ab (diff)
downloadtor-5d2b2b9ede6ea0f247b5505d7e30a622c312e9fe.tar.gz
tor-5d2b2b9ede6ea0f247b5505d7e30a622c312e9fe.zip
Clear up a comment about when an assertion could fire
Resolves ticket 6164
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index badacd683d..49fee88a97 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -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)) {