From d3408d05935e61a303b5761cc5aa029eb54408f8 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Mon, 4 Apr 2011 18:24:32 +0200 Subject: 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). --- lib/nss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3