mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
Fix an NSS socket leak-on-error found by dgoulet
This commit is contained in:
parent
d6c564e09a
commit
4e2028152d
@ -452,6 +452,7 @@ tor_tls_release_socket(tor_tls_t *tls)
|
||||
|
||||
PRFileDesc *tcp = PR_GetIdentitiesLayer(tls->ssl, PR_NSPR_IO_LAYER);
|
||||
if (BUG(! tcp)) {
|
||||
tor_close_socket(sock);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user