зеркало из https://github.com/mozilla/pjs.git
Bug 190112: PK11_ReadAttribute needs to call PK11_ExitSlotMonitor before
we return because of allocation failure.
This commit is contained in:
Родитель
43ba1064ac
Коммит
dcfc314ddc
|
@ -4339,7 +4339,10 @@ PK11_ReadAttribute(PK11SlotInfo *slot, CK_OBJECT_HANDLE id,
|
|||
} else {
|
||||
attr.pValue = PORT_Alloc(attr.ulValueLen);
|
||||
}
|
||||
if (attr.pValue == NULL) return SECFailure;
|
||||
if (attr.pValue == NULL) {
|
||||
PK11_ExitSlotMonitor(slot);
|
||||
return SECFailure;
|
||||
}
|
||||
crv = PK11_GETTAB(slot)->C_GetAttributeValue(slot->session,id,&attr,1);
|
||||
PK11_ExitSlotMonitor(slot);
|
||||
if (crv != CKR_OK) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче