aboutsummaryrefslogtreecommitdiff
path: root/src/or/hs_common.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-09-04 12:09:03 -0400
committerNick Mathewson <nickm@torproject.org>2017-09-04 12:09:03 -0400
commite72dec18a98bef8fc16486bf5bea1d313845ece4 (patch)
treebe6194640b6723ccefbf6e7e07ee77f1f0614265 /src/or/hs_common.c
parenta229d6c2f836ea38d97310b16490a94b13965958 (diff)
parent6d48e756855b79becf275c062b4e2fd48ccee23b (diff)
downloadtor-e72dec18a98bef8fc16486bf5bea1d313845ece4.tar.gz
tor-e72dec18a98bef8fc16486bf5bea1d313845ece4.zip
Merge remote-tracking branch 'asn/ticket23056_v2'
Diffstat (limited to 'src/or/hs_common.c')
-rw-r--r--src/or/hs_common.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/hs_common.c b/src/or/hs_common.c
index d866ab6a8f..7d10754cde 100644
--- a/src/or/hs_common.c
+++ b/src/or/hs_common.c
@@ -1206,12 +1206,16 @@ node_has_hsdir_index(const node_t *node, int is_for_next_period)
if (BUG(node->hsdir_index == NULL) ||
BUG(tor_mem_is_zero((const char*)node->hsdir_index->current,
DIGEST256_LEN))) {
+ log_warn(LD_BUG, "Zero current index (ri: %p, rs: %p, md: %p)",
+ node->ri, node->rs, node->md);
return 0;
}
if (is_for_next_period &&
BUG(tor_mem_is_zero((const char*)node->hsdir_index->next,
DIGEST256_LEN))) {
+ log_warn(LD_BUG, "Zero next index (ri: %p, rs: %p, md: %p)",
+ node->ri, node->rs, node->md);
return 0;
}