[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Explicitly ignore BIO_set_close() return val to fix #27711



commit af39649aade3da87ac23ad62605e2273f92d9d47
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Fri Sep 14 13:09:10 2018 -0400

    Explicitly ignore BIO_set_close() return val to fix #27711
---
 src/lib/tls/tortls_openssl.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/tls/tortls_openssl.c b/src/lib/tls/tortls_openssl.c
index 534a90de5..227225b96 100644
--- a/src/lib/tls/tortls_openssl.c
+++ b/src/lib/tls/tortls_openssl.c
@@ -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);
   }
 }
 

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits