mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-09-22 03:09:19 +03:00
Fix bugs reported by Coverity Scan.
This commit is contained in:
@ -1824,7 +1824,7 @@ SECURE *OpenSec(UINT id)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
sec->SlotIdList = (UINT *)ZeroMalloc(sizeof(UINT *) * sec->NumSlot);
|
||||
sec->SlotIdList = (UINT *)ZeroMalloc(sizeof(UINT) * sec->NumSlot);
|
||||
|
||||
if (sec->Api->C_GetSlotList(TRUE, sec->SlotIdList, &sec->NumSlot) != CKR_OK)
|
||||
{
|
||||
|
Reference in New Issue
Block a user