summaryrefslogtreecommitdiff
path: root/lib/nss.c
diff options
context:
space:
mode:
authorKamil Dudka <kdudka@redhat.com>2011-04-04 18:24:32 +0200
committerKamil Dudka <kdudka@redhat.com>2011-04-04 18:34:19 +0200
commitd3408d05935e61a303b5761cc5aa029eb54408f8 (patch)
tree3b4fddd1e0ed1f90a548031fda2687b233b0878f /lib/nss.c
parent318c5c802b5481e184def6f711991657be277cc3 (diff)
downloadcurl-d3408d05935e61a303b5761cc5aa029eb54408f8.tar.gz
nss: fix a crash within SSL_AuthCertificate()
The bug was introduced in 806dbb0 (a wrong value was passed in as the first argument to the default callback in our wrapper).
Diffstat (limited to 'lib/nss.c')
-rw-r--r--lib/nss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nss.c b/lib/nss.c
index a3bd77cfb..7377e72fc 100644
--- 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)