aboutsummaryrefslogtreecommitdiff
path: root/src/or/rendservice.c
diff options
context:
space:
mode:
authorChelsea H. Komlo <chelsea.komlo@gmail.com>2016-11-17 22:45:24 -0500
committerChelsea H. Komlo <chelsea.komlo@gmail.com>2016-11-24 10:01:03 -0500
commit276d07a88a3b595aff9e28c7f1862563d2751b55 (patch)
treec5e66e2eecad627ba0d1ac02b19b040fea467350 /src/or/rendservice.c
parent4614f8e6816d559f8fbe9ae0f42d751d3fb95c77 (diff)
downloadtor-276d07a88a3b595aff9e28c7f1862563d2751b55.tar.gz
tor-276d07a88a3b595aff9e28c7f1862563d2751b55.zip
crypto_digest returns expected error value of -1
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 8ffd0bc319..4d25251f08 100644
--- a/src/or/rendservice.c
+++ b/src/or/rendservice.c
@@ -3084,7 +3084,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);