aboutsummaryrefslogtreecommitdiff
path: root/lib/nss.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2009-10-28 20:30:23 +0000
committerDaniel Stenberg <daniel@haxx.se>2009-10-28 20:30:23 +0000
commit6a79b0e8591ec94adcc49809bf1ab8cf66f1bb41 (patch)
treeb1b8b301d39caaee4e22277b84fbc52545d03b5d /lib/nss.c
parent0d9f14f5c17e4a3888dedbc8d568a55979fc05f0 (diff)
Since the NSS lib closes the socket the memory tracking system wrongly gets a
false positive on a leaked socket, so this introduces a way to tell the system that the socket is indeed closed without explicitly closing it!
Diffstat (limited to 'lib/nss.c')
-rw-r--r--lib/nss.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/nss.c b/lib/nss.c
index 866b1d0c8..7408585da 100644
--- a/lib/nss.c
+++ b/lib/nss.c
@@ -930,6 +930,7 @@ void Curl_nss_close(struct connectdata *conn, int sockindex)
/* NSS closes the socket we previously handed to it, so we must mark it
as closed to avoid double close */
+ fake_sclose(conn->sock[sockindex]);
conn->sock[sockindex] = CURL_SOCKET_BAD;
if(connssl->client_nickname != NULL) {
free(connssl->client_nickname);