From 328bdf2c61a2b04ce1b3cde3063a07f170134717 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Fri, 20 Aug 2021 14:41:20 +0200 Subject: [PATCH] macset: fix memory size check --- src/util-macset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util-macset.c b/src/util-macset.c index 56d7539af6..b88b342384 100644 --- a/src/util-macset.c +++ b/src/util-macset.c @@ -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)); -- 2.47.2