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).
This commit is contained in:
Kamil Dudka 2011-04-04 18:24:32 +02:00
parent 318c5c802b
commit d3408d0593
1 changed files with 1 additions and 1 deletions

View File

@ -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)