Make sure the DetectHttpMethodData structure is properly initialized before using it.

remotes/origin/master-1.1.x
Victor Julien 15 years ago
parent 7b13ba9f9e
commit fc1687d875

@ -206,6 +206,8 @@ static int DetectHttpMethodSetup(DetectEngineCtx *de_ctx, Signature *s, char *st
if (data == NULL)
goto error;
memset(data, 0x00, sizeof(DetectHttpMethodData));
data->content_len = ((DetectContentData *)pm->ctx)->content_len;
data->content = ((DetectContentData *)pm->ctx)->content;

Loading…
Cancel
Save