make listing of certs finish cleanly under purify

git-svn-id: svn://10.0.0.236/trunk@114510 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ian.mcgreer%sun.com 2002-02-14 18:02:30 +00:00
parent 8d1678576d
commit 358f1a0a6a

View File

@ -693,8 +693,11 @@ ListCerts(CERTCertDBHandle *handle, char *name, PK11SlotInfo *slot,
list= PK11_GetAllTokens(CKM_INVALID_MECHANISM,
PR_FALSE,PR_FALSE,pwdata);
if (list) for (le = list->head; le; le = le->next) {
rv = listCerts(handle,name,le->slot,raw,ascii,outfile,pwdata);
if (list) {
for (le = list->head; le; le = le->next) {
rv = listCerts(handle,name,le->slot,raw,ascii,outfile,pwdata);
}
PK11_FreeSlotList(list);
}
} else {
rv = listCerts(handle,name,slot,raw,ascii,outfile,pwdata);