summaryrefslogtreecommitdiff
path: root/src/lib/tls/tortls_nss.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/tls/tortls_nss.c')
-rw-r--r--src/lib/tls/tortls_nss.c3
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