Bugzilla bug 136625: prevent pk11_cert_collect from storing NULL in the

certData.certs array so that pk11_searchCertsAndTrust won't deference a
NULL pointer.  r=relyea.
This commit is contained in:
wtc%netscape.com 2002-04-10 17:56:52 +00:00
parent 09eb8a090a
commit 0d4ecebd48

View File

@ -3642,6 +3642,10 @@ pk11_cert_collect(NSSLOWCERTCertificate *cert,void *arg)
{
pk11CertData *cd = (pk11CertData *)arg;
if (cert == NULL) {
return SECSuccess;
}
if (cd->certs == NULL) {
return SECFailure;
}