]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
nss: fix a crash within SSL_AuthCertificate()
authorKamil Dudka <kdudka@redhat.com>
Mon, 4 Apr 2011 16:24:32 +0000 (18:24 +0200)
committerKamil Dudka <kdudka@redhat.com>
Mon, 4 Apr 2011 16:34:19 +0000 (18:34 +0200)
The bug was introduced in 806dbb0 (a wrong value was passed in as the
first argument to the default callback in our wrapper).

lib/nss.c

index a3bd77cfb0f963185771c11422c5b3107a21168d..7377e72fc848c6b4b975ec618a3b0884b34ca9cc 100644 (file)
--- a/lib/nss.c
+++ b/lib/nss.c
@@ -633,7 +633,7 @@ static SECStatus nss_auth_cert_hook(void *arg, PRFileDesc *fd, PRBool checksig,
     return SECSuccess;
   }
 
-  return SSL_AuthCertificate(arg, fd, checksig, isServer);
+  return SSL_AuthCertificate(CERT_GetDefaultCertDB(), fd, checksig, isServer);
 }
 
 static SECStatus BadCertHandler(void *arg, PRFileDesc *sock)