Prevent crash if certlist is NULL

This commit is contained in:
jpierre%netscape.com 2003-09-09 00:54:20 +00:00
Родитель 5547869e54
Коммит 8af297a802
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -662,7 +662,9 @@ listCerts(CERTCertDBHandle *handle, char *name, PK11SlotInfo *slot,
rv = SECSuccess;
}
}
CERT_DestroyCertList(certs);
if (certs) {
CERT_DestroyCertList(certs);
}
if (rv) {
SECU_PrintError(progName, "problem printing certificate nicknames");
return SECFailure;