*/
int DetectContentSetup(DetectEngineCtx *de_ctx, Signature *s, const char *contentstr)
{
- DetectContentData *cd = NULL;
- SigMatch *sm = NULL;
-
- cd = DetectContentParse(de_ctx->spm_global_thread_ctx, contentstr);
+ DetectContentData *cd = DetectContentParse(de_ctx->spm_global_thread_ctx, contentstr);
if (cd == NULL)
goto error;
if (s->init_data->negated == true) {
}
}
- sm = SigMatchAlloc();
+ SigMatch *sm = SigMatchAlloc();
if (sm == NULL)
goto error;
sm->ctx = (void *)cd;