mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
have only one code path for #9635 logging
This commit is contained in:
parent
7ad0cd209c
commit
df03e9b737
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user