have only one code path for #9635 logging

This commit is contained in:
Nick Mathewson 2014-05-01 12:40:33 -04:00
parent 7ad0cd209c
commit df03e9b737
1 changed files with 2 additions and 5 deletions

View File

@ -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;