]> granicus.if.org Git - curl/commitdiff
- Kevin Baughman provided a fix preventing libcurl-NSS from crash on doubly
authorKamil Dudka <kdudka@redhat.com>
Thu, 12 Nov 2009 10:54:10 +0000 (10:54 +0000)
committerKamil Dudka <kdudka@redhat.com>
Thu, 12 Nov 2009 10:54:10 +0000 (10:54 +0000)
  closed NSPR descriptor. The issue was hard to find, reported several times
  before and always closed unresolved. More info at the RH bug:
  https://bugzilla.redhat.com/534176

CHANGES
lib/nss.c

diff --git a/CHANGES b/CHANGES
index cbe57113147b5dcf1da91b40311690d60141babe..5bfe9312a4438ba06b2522d6b5d9ad18f2bfee1b 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -6,6 +6,12 @@
 
                                   Changelog
 
+Kamil Dudka (12 Nov 2009)
+- Kevin Baughman provided a fix preventing libcurl-NSS from crash on doubly
+  closed NSPR descriptor. The issue was hard to find, reported several times
+  before and always closed unresolved. More info at the RH bug:
+  https://bugzilla.redhat.com/534176
+
 Yang Tse (11 Nov 2009)
 - Marco Maggi reported that compilation failed when configured --with-gssapi
   and GNU GSS installed due to a missing mutual exclusion of header files in
index 10d07def82fd09f453640cac939edb87216ed28e..5c1340fa9ee9a67a52995488909707e89ee12368 100644 (file)
--- a/lib/nss.c
+++ b/lib/nss.c
@@ -1227,7 +1227,9 @@ CURLcode Curl_nss_connect(struct connectdata *conn, int sockindex)
   connssl->handle = SSL_ImportFD(model, connssl->handle);
   if(!connssl->handle)
     goto error;
+
   PR_Close(model); /* We don't need this any more */
+  model = NULL;
 
   /* This is the password associated with the cert that we're using */
   if (data->set.str[STRING_KEY_PASSWD]) {