From: Kamil Dudka Date: Mon, 4 Apr 2011 16:24:32 +0000 (+0200) Subject: nss: fix a crash within SSL_AuthCertificate() X-Git-Tag: curl-7_21_5~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3408d05935e61a303b5761cc5aa029eb54408f8;p=thirdparty%2Fcurl.git 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). --- diff --git a/lib/nss.c b/lib/nss.c index a3bd77cfb0..7377e72fc8 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)