diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-08-25 11:39:38 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-08-25 11:39:38 -0400 |
commit | b91dce9454c3db669a07968b25a4fa03d8526917 (patch) | |
tree | d1e4aa46835978b63628a1dbd3e5782140cb72fa /src/or/rendcommon.c | |
parent | 0de3147bf1b7a76b99ced69bde6e2169bb9a0caa (diff) | |
parent | 6069c829f90576c04a0802d2a108378a2bbabb7a (diff) | |
download | tor-b91dce9454c3db669a07968b25a4fa03d8526917.tar.gz tor-b91dce9454c3db669a07968b25a4fa03d8526917.zip |
Merge branch 'maint-0.3.1'
Diffstat (limited to 'src/or/rendcommon.c')
-rw-r--r-- | src/or/rendcommon.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c index f7ae7c61f1..458a90058f 100644 --- a/src/or/rendcommon.c +++ b/src/or/rendcommon.c @@ -480,7 +480,10 @@ rend_encode_v2_descriptors(smartlist_t *descs_out, tor_assert(descriptor_cookie); } /* Obtain service_id from public key. */ - crypto_pk_get_digest(service_key, service_id); + if (crypto_pk_get_digest(service_key, service_id) < 0) { + log_warn(LD_BUG, "Couldn't compute service key digest."); + return -1; + } /* Calculate current time-period. */ time_period = get_time_period(now, period, service_id); /* Determine how many seconds the descriptor will be valid. */ |