From 18dd54dfa77eddecc8a94da0a1e30041abfccddf Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Fri, 7 Nov 2014 23:43:45 +0100 Subject: [PATCH] Start rule inspect with mask check --- src/detect.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/detect.c b/src/detect.c index 2c44c8fd56..34ae91b49f 100644 --- a/src/detect.c +++ b/src/detect.c @@ -1514,6 +1514,9 @@ int SigMatchSignatures(ThreadVars *th_v, DetectEngineCtx *de_ctx, DetectEngineTh SCLogDebug("inspecting signature id %"PRIu32"", s->id); + if ((s->mask & mask) != s->mask) + goto next; + /* if the sig has alproto and the session as well they should match */ if (likely(sflags & SIG_FLAG_APPLAYER)) { if (s->alproto != ALPROTO_UNKNOWN && s->alproto != alproto) {