]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect: remove SIG_FLAG_STATE_MATCH flag check
authorVictor Julien <victor@inliniac.net>
Thu, 9 Aug 2018 09:32:00 +0000 (11:32 +0200)
committerVictor Julien <victor@inliniac.net>
Thu, 9 Aug 2018 15:37:10 +0000 (17:37 +0200)
It could not fail as before it the flag was already checked as a bail
out condition.

src/detect.c

index bb16ad75013d6b1b3e4e2ed0a04877b37ba14ffb..594cf0485a8dfc50a53a06e30b620a893356a633 100644 (file)
@@ -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 */