Bug 190112: PK11_ReadAttribute needs to call PK11_ExitSlotMonitor before

we return because of allocation failure.
This commit is contained in:
wtc%netscape.com 2003-01-22 17:44:36 +00:00
Родитель a3ff51299c
Коммит 8518277691
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -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) {