From: Mark Andrews Date: Thu, 2 Aug 2018 04:49:31 +0000 (+1000) Subject: use sizeof(CK_SLOT_ID) X-Git-Tag: v9.13.3~42^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c1d8b2e998abc965edf62e470001365ec7b2cde;p=thirdparty%2Fbind9.git use sizeof(CK_SLOT_ID) --- diff --git a/lib/isc/pk11.c b/lib/isc/pk11.c index f3835b66419..4624e94d473 100644 --- a/lib/isc/pk11.c +++ b/lib/isc/pk11.c @@ -484,7 +484,7 @@ scan_slots(void) { /* 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)); @@ -671,7 +671,7 @@ scan_slots(void) { } if (slotList != NULL) { - pk11_mem_put(slotList, sizeof(CK_SLOT_ID_PTR) * slotCount); + pk11_mem_put(slotList, sizeof(CK_SLOT_ID) * slotCount); } }