aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-06-15 10:40:37 -0400
committerNick Mathewson <nickm@torproject.org>2012-06-15 15:07:54 -0400
commit32bf25888110482255cda8bcc77fb4fc7d8c0d38 (patch)
treeb11eb96a63a7fbaff837ebe331883c91c30c644e /src
parente62104a7d21432380c66db1901215412e9c53ad7 (diff)
downloadtor-32bf25888110482255cda8bcc77fb4fc7d8c0d38.tar
tor-32bf25888110482255cda8bcc77fb4fc7d8c0d38.tar.gz
Change a silent ignore-the-bug in microdesc.c to a LOG_INFO
I don't believe this bug occurs, but there was an XXX023 to make sure it doesn't.
Diffstat (limited to 'src')
-rw-r--r--src/or/microdesc.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/or/microdesc.c b/src/or/microdesc.c
index 10dab2533..d5a27d527 100644
--- a/src/or/microdesc.c
+++ b/src/or/microdesc.c
@@ -643,8 +643,13 @@ microdesc_list_missing_digest256(networkstatus_t *ns, microdesc_cache_t *cache,
continue;
if (skip && digestmap_get(skip, rs->descriptor_digest))
continue;
- if (tor_mem_is_zero(rs->descriptor_digest, DIGEST256_LEN))
- continue; /* This indicates a bug somewhere XXXX023*/
+ if (tor_mem_is_zero(rs->descriptor_digest, DIGEST256_LEN)) {
+ log_info(LD_BUG, "Found an entry in networktatus with no microdescriptor "
+ "digest. (Router %s=%s at %s:%d.)", rs->nickname,
+ hex_str(rs->identity_digest, DIGEST_LEN),
+ fmt_addr32(rs->addr), rs->or_port);
+ continue;
+ }
/* XXXX Also skip if we're a noncache and wouldn't use this router.
* XXXX NM Microdesc
*/