From c279a801e5766c4adbbf882b0e4e3eeada120423 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 9 Aug 2018 11:32:00 +0200 Subject: [PATCH] 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. --- src/detect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.47.2