summaryrefslogtreecommitdiff
path: root/src/or/rendservice.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-12-05 10:27:16 -0500
committerNick Mathewson <nickm@torproject.org>2016-12-05 10:27:16 -0500
commitf92630941ab8f6d79d23acc921eb780202b65e3b (patch)
tree8f80816c03b01e102437a55cedb102080be8688e /src/or/rendservice.c
parent3f295bbef1d0d2cc495a963b858d211a85498ba3 (diff)
parent1ca777474b858acfa97137c155488a78006d494b (diff)
downloadtor-f92630941ab8f6d79d23acc921eb780202b65e3b.tar.gz
tor-f92630941ab8f6d79d23acc921eb780202b65e3b.zip
Merge remote-tracking branch 'chelseakomlo/20717_hashing_api_bug'
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r--src/or/rendservice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c
index 0b44ae93aa..545fba1449 100644
--- a/src/or/rendservice.c
+++ b/src/or/rendservice.c
@@ -3260,7 +3260,7 @@ rend_service_intro_has_opened(origin_circuit_t *circuit)
len += 2;
memcpy(auth, circuit->cpath->prev->rend_circ_nonce, DIGEST_LEN);
memcpy(auth+DIGEST_LEN, "INTRODUCE", 9);
- if (crypto_digest(buf+len, auth, DIGEST_LEN+9))
+ if (crypto_digest(buf+len, auth, DIGEST_LEN+9) < 0)
goto err;
len += 20;
note_crypto_pk_op(REND_SERVER);