Check for Empty CRL list as well.

Bug 164501.


git-svn-id: svn://10.0.0.236/trunk@136165 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
relyea%netscape.com
2003-01-10 19:09:46 +00:00
parent 6d8203e674
commit 4e78f57cad

View File

@@ -3750,7 +3750,10 @@ loser:
} else {
crls = nssTrustDomain_FindCRLsBySubject(td, &subject);
}
if (!crls) {
if ((!crls) || (*crls == NULL)) {
if (crls) {
nssCRLArray_Destroy(crls);
}
if (NSS_GetError() == NSS_ERROR_NOT_FOUND) {
PORT_SetError(SEC_ERROR_CRL_NOT_FOUND);
}