Explicitly ignore BIO_set_close() return val to fix #27711

This commit is contained in:
Nick Mathewson 2018-09-14 13:09:10 -04:00
parent 4bdba5fa4b
commit af39649aad

View File

@ -1169,10 +1169,10 @@ tor_tls_release_socket(tor_tls_t *tls)
wbio = SSL_get_wbio(tls->ssl);
if (rbio) {
BIO_set_close(rbio, BIO_NOCLOSE);
(void) BIO_set_close(rbio, BIO_NOCLOSE);
}
if (wbio && wbio != rbio) {
BIO_set_close(wbio, BIO_NOCLOSE);
(void) BIO_set_close(wbio, BIO_NOCLOSE);
}
}