Fix an NSS socket leak-on-error found by dgoulet

This commit is contained in:
Nick Mathewson 2018-09-20 13:53:04 -04:00
parent d6c564e09a
commit 4e2028152d

View File

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