mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
Fix unlikely memory leak introduced in 418f3d6298
This is CID 1416880; bug not in any released Tor.
This commit is contained in:
parent
b27c029266
commit
8de4a80125
@ -1549,6 +1549,7 @@ connection_or_check_valid_tls_handshake(or_connection_t *conn,
|
||||
|
||||
if (identity_rcvd) {
|
||||
if (crypto_pk_get_digest(identity_rcvd, digest_rcvd_out) < 0) {
|
||||
crypto_pk_free(identity_rcvd);
|
||||
return -1;
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user