/* it's not an error if we didn't find any providers */
if (slotCount == 0)
return;
- slotList = pk11_mem_get(sizeof(CK_SLOT_ID_PTR) * slotCount);
+ slotList = pk11_mem_get(sizeof(CK_SLOT_ID) * slotCount);
RUNTIME_CHECK(slotList != NULL);
PK11_FATALCHECK(pkcs_C_GetSlotList, (CK_FALSE, slotList, &slotCount));
}
if (slotList != NULL) {
- pk11_mem_put(slotList, sizeof(CK_SLOT_ID_PTR) * slotCount);
+ pk11_mem_put(slotList, sizeof(CK_SLOT_ID) * slotCount);
}
}