aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-05-01 12:40:33 -0400
committerNick Mathewson <nickm@torproject.org>2014-05-01 12:40:33 -0400
commitdf03e9b7376032f801e10874a97d83ac17490f68 (patch)
treeae97fa8685f53bc0120b48d84cfcd8bb3097a512 /src
parent7ad0cd209cae8b4382d5e9c405e995252f714964 (diff)
downloadtor-df03e9b7376032f801e10874a97d83ac17490f68.tar
tor-df03e9b7376032f801e10874a97d83ac17490f68.tar.gz
have only one code path for #9635 logging
Diffstat (limited to 'src')
-rw-r--r--src/or/onion_ntor.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/or/onion_ntor.c b/src/or/onion_ntor.c
index b91ecbee3..ef501f69d 100644
--- a/src/or/onion_ntor.c
+++ b/src/or/onion_ntor.c
@@ -291,11 +291,8 @@ onion_skin_ntor_client_handshake(
memwipe(&s, 0, sizeof(s));
- if (bad & 4) {
- log_warn(LD_PROTOCOL, "Incorrect digest from ntor circuit extension "
- "request.");
- } else if (bad) {
- log_warn(LD_PROTOCOL, "Invalid result from curve25519 handshake");
+ if (bad) {
+ log_warn(LD_PROTOCOL, "Invalid result from curve25519 handshake: %d", bad);
}
return bad ? -1 : 0;