Skip to content
Snippets Groups Projects
Commit df03e9b7 authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

have only one code path for #9635 logging

parent 7ad0cd20
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment