diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-09-20 12:53:39 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-09-20 12:53:39 -0400 |
commit | 62b709bc26fe628777d2af4becdf08fd8adf1140 (patch) | |
tree | bc316ff4f774e89fc6b644af3e9dab8b29b779b9 /src/lib/tls | |
parent | f25323fe3f64fbfee0e1c2614d0e13befe283b88 (diff) | |
download | tor-62b709bc26fe628777d2af4becdf08fd8adf1140.tar.gz tor-62b709bc26fe628777d2af4becdf08fd8adf1140.zip |
Release ownership of the dummy socket that tortls_nss.c will close
Related to #27795 -- since NSS will close the socket, we must not
count it as owned by Tor.
Diffstat (limited to 'src/lib/tls')
-rw-r--r-- | src/lib/tls/tortls_nss.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/tls/tortls_nss.c b/src/lib/tls/tortls_nss.c index 88d2be8cee..4e7227b12a 100644 --- a/src/lib/tls/tortls_nss.c +++ b/src/lib/tls/tortls_nss.c @@ -456,6 +456,9 @@ tor_tls_release_socket(tor_tls_t *tls) } PR_ChangeFileDescNativeHandle(tcp, sock); + /* Tell our socket accounting layer that we don't own this socket any more: + * NSS is about to free it for us. */ + tor_release_socket_ownership(sock); } void |