flowvar: initialize new memory to prevent issues on error handling

pull/694/head
Victor Julien 12 years ago
parent 0beb7ed781
commit b4e6bbe4bc

@ -173,6 +173,7 @@ static int DetectFlowvarSetup (DetectEngineCtx *de_ctx, Signature *s, char *raws
fd = SCMalloc(sizeof(DetectFlowvarData));
if (unlikely(fd == NULL))
goto error;
memset(fd, 0x00, sizeof(*fd));
fd->content = SCMalloc(contentlen);
if (unlikely(fd->content == NULL))

Loading…
Cancel
Save