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