diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-08-23 13:02:12 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-09-04 14:52:35 -0400 |
commit | b5fddbd24144a94580e50886cd07a82968a1b86c (patch) | |
tree | 246ddac8f78c865f50a1403d9b90bf69199f68f5 /src/lib/tls/tortls_openssl.c | |
parent | c18967d6c80f6a40acc78556490a4f40bc0e7003 (diff) | |
download | tor-b5fddbd24144a94580e50886cd07a82968a1b86c.tar.gz tor-b5fddbd24144a94580e50886cd07a82968a1b86c.zip |
Avoid double-close on TCP sockets under NSS.
Diffstat (limited to 'src/lib/tls/tortls_openssl.c')
-rw-r--r-- | src/lib/tls/tortls_openssl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/tls/tortls_openssl.c b/src/lib/tls/tortls_openssl.c index a9bab67a05..e455693dfd 100644 --- a/src/lib/tls/tortls_openssl.c +++ b/src/lib/tls/tortls_openssl.c @@ -1039,7 +1039,7 @@ tor_tls_new(int sock, int isServer) goto err; } result->socket = sock; - bio = BIO_new_socket(sock, BIO_NOCLOSE); + bio = BIO_new_socket(sock, 0); if (! bio) { tls_log_errors(NULL, LOG_WARN, LD_NET, "opening BIO"); #ifdef SSL_set_tlsext_host_name |