diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-03-27 14:15:53 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-03-27 14:15:53 -0400 |
commit | de9de9e7dd2f34af04c76abf3f51c72dec4bdc93 (patch) | |
tree | af125f4d2e25a93c82c678c08c7b89d43fef66e3 /src/or/onion_fast.c | |
parent | cd15172444e0f8e34d1adcd84034c40893cd6c0f (diff) | |
download | tor-de9de9e7dd2f34af04c76abf3f51c72dec4bdc93.tar.gz tor-de9de9e7dd2f34af04c76abf3f51c72dec4bdc93.zip |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/onion_fast.c b/src/or/onion_fast.c index 8e778dbc63..38b62decc3 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)) { |