Browse Source

Explicitly ignore BIO_set_close() return val to fix #27711

Nick Mathewson 5 years ago
parent
commit
af39649aad
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/lib/tls/tortls_openssl.c

+ 2 - 2
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);
   }
 }