detect/flowint: use calloc to avoid undefined behavior

pull/14262/head
Shivani Bhardwaj 9 months ago committed by Victor Julien
parent e5994deb23
commit 59944c7787

@ -291,7 +291,7 @@ static DetectFlowintData *DetectFlowintParse(DetectEngineCtx *de_ctx, const char
goto error; goto error;
} }
sfd = SCMalloc(sizeof(DetectFlowintData)); sfd = SCCalloc(1, sizeof(DetectFlowintData));
if (unlikely(sfd == NULL)) if (unlikely(sfd == NULL))
goto error; goto error;

Loading…
Cancel
Save