зеркало из https://github.com/mozilla/pjs.git
[Bug 337154] Coverity 321, dead code in mozilla/security/nss/lib/pk11wrap/pk11cert.c. (second patch) r=nelson
This commit is contained in:
Родитель
b50c1785b6
Коммит
63a306d826
|
@ -1106,7 +1106,6 @@ pk11_FindCertObjectByTemplate(PK11SlotInfo **slotPtr,
|
||||||
/* get them all! */
|
/* get them all! */
|
||||||
list = PK11_GetAllTokens(CKM_INVALID_MECHANISM,PR_FALSE,PR_TRUE,wincx);
|
list = PK11_GetAllTokens(CKM_INVALID_MECHANISM,PR_FALSE,PR_TRUE,wincx);
|
||||||
if (list == NULL) {
|
if (list == NULL) {
|
||||||
if (list) PK11_FreeSlotList(list);
|
|
||||||
return CK_INVALID_HANDLE;
|
return CK_INVALID_HANDLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1270,7 +1269,6 @@ pk11_AllFindCertObjectByRecipientNew(NSSCMSRecipient **recipientlist, void *winc
|
||||||
/* get them all! */
|
/* get them all! */
|
||||||
list = PK11_GetAllTokens(CKM_INVALID_MECHANISM,PR_FALSE,PR_TRUE,wincx);
|
list = PK11_GetAllTokens(CKM_INVALID_MECHANISM,PR_FALSE,PR_TRUE,wincx);
|
||||||
if (list == NULL) {
|
if (list == NULL) {
|
||||||
if (list) PK11_FreeSlotList(list);
|
|
||||||
return CK_INVALID_HANDLE;
|
return CK_INVALID_HANDLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче