rule-parsing: remove unnecessary code

Those lines were included former to prevent possible null pointer
dereference but that won't happen anymore with the rest of the rework
done in the code. The code even results in a control flow issue reported
by coverity scan, so just remove it.
pull/1905/head
Andreas Herz 9 years ago committed by Victor Julien
parent 69785f186c
commit 5d34ac071d

@ -75,10 +75,6 @@ static int DetectMsgSetup (DetectEngineCtx *de_ctx, Signature *s, char *msgstr)
goto error;
}
/* make sure that we don't proceed with null pointer */
if (unlikely(str == NULL))
goto error;
len = strlen(str);
if (len == 0)
goto error;

Loading…
Cancel
Save