mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
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:
parent
09eb8a090a
commit
0d4ecebd48
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user