detect-engine: use flag SIG_FLAG_MPM_NEG

The flag SIG_FLAG_MPM_NEG is set before whitelisting the rules. Make it
better by checking for the flag in the beginning and return immediately.
pull/10028/head
Shivani Bhardwaj 3 years ago committed by Victor Julien
parent 47c9a14543
commit 34858808c1

@ -620,6 +620,8 @@ static int RuleGetMpmPatternSize(const Signature *s)
static bool RuleMpmIsNegated(const Signature *s)
{
if (s->flags & SIG_FLAG_MPM_NEG)
return true;
if (s->init_data->mpm_sm == NULL)
return false;
int mpm_list = s->init_data->mpm_sm_list;

Loading…
Cancel
Save