mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Clear up a comment about when an assertion could fire
Resolves ticket 6164
This commit is contained in:
+3
-2
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user