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:
parent
8d1678576d
commit
358f1a0a6a
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user