From: Victor Julien Date: Thu, 9 Aug 2018 09:32:00 +0000 (+0200) Subject: detect: remove SIG_FLAG_STATE_MATCH flag check X-Git-Tag: suricata-4.1.0-rc2~145 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c279a801e5766c4adbbf882b0e4e3eeada120423;p=thirdparty%2Fsuricata.git detect: remove SIG_FLAG_STATE_MATCH flag check It could not fail as before it the flag was already checked as a bail out condition. --- diff --git a/src/detect.c b/src/detect.c index bb16ad7501..594cf0485a 100644 --- a/src/detect.c +++ b/src/detect.c @@ -842,7 +842,7 @@ static inline void DetectRulePacketRules( /* Check the payload keywords. If we are a MPM sig and we've made * to here, we've had at least one of the patterns match */ - if (!(sflags & SIG_FLAG_STATE_MATCH) && s->sm_arrays[DETECT_SM_LIST_PMATCH] != NULL) { + if (s->sm_arrays[DETECT_SM_LIST_PMATCH] != NULL) { KEYWORD_PROFILING_SET_LIST(det_ctx, DETECT_SM_LIST_PMATCH); /* if we have stream msgs, inspect against those first, * but not for a "dsize" signature */