aboutsummaryrefslogtreecommitdiff
path: root/src/or/onion_fast.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-03-27 14:15:53 -0400
committerNick Mathewson <nickm@torproject.org>2014-03-27 14:15:53 -0400
commitde9de9e7dd2f34af04c76abf3f51c72dec4bdc93 (patch)
treeaf125f4d2e25a93c82c678c08c7b89d43fef66e3 /src/or/onion_fast.c
parentcd15172444e0f8e34d1adcd84034c40893cd6c0f (diff)
downloadtor-de9de9e7dd2f34af04c76abf3f51c72dec4bdc93.tar
tor-de9de9e7dd2f34af04c76abf3f51c72dec4bdc93.tar.gz
Give specific warnings when client-side onionskin handshakes fail
Fix for bug9635.
Diffstat (limited to 'src/or/onion_fast.c')
-rw-r--r--src/or/onion_fast.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/onion_fast.c b/src/or/onion_fast.c
index 8e778dbc6..38b62decc 100644
--- a/src/or/onion_fast.c
+++ b/src/or/onion_fast.c
@@ -104,6 +104,7 @@ fast_client_handshake(const fast_handshake_state_t *handshake_state,
out_len = key_out_len+DIGEST_LEN;
out = tor_malloc(out_len);
if (crypto_expand_key_material_TAP(tmp, sizeof(tmp), out, out_len)) {
+ log_warn(LD_CIRC, "Failed to expand key material");
goto done;
}
if (tor_memneq(out, handshake_reply_out+DIGEST_LEN, DIGEST_LEN)) {