macset: fix memory size check

pull/6324/head
Eric Leblond 4 years ago committed by Victor Julien
parent d7468c55ca
commit 328bdf2c61

@ -90,7 +90,7 @@ bool MacSetFlowStorageEnabled(void)
MacSet *MacSetInit(int size)
{
MacSet *ms = NULL;
if (!FLOW_CHECK_MEMCAP(sizeof(ms))) {
if (!FLOW_CHECK_MEMCAP(sizeof(*ms))) {
return NULL;
}
ms = SCCalloc(1, sizeof(*ms));

Loading…
Cancel
Save