]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect: add to signature mask for decode events
authorPhilippe Antoine <pantoine@oisf.net>
Wed, 19 Jun 2024 11:42:32 +0000 (13:42 +0200)
committerVictor Julien <victor@inliniac.net>
Sat, 22 Jun 2024 13:54:33 +0000 (15:54 +0200)
Ticket: 6291

src/detect-engine-build.c

index 8f292025a3603af2f236754b48e7be9c41ebb1ce..f69def1c7d54e66f7826b1dc35f8ca0391517b51 100644 (file)
@@ -536,9 +536,12 @@ static int SignatureCreateMask(Signature *s)
                 }
                 break;
             }
+            case DETECT_DECODE_EVENT:
+                // fallthrough
+            case DETECT_STREAM_EVENT:
+                // fallthrough
             case DETECT_AL_APP_LAYER_EVENT:
-                s->mask |= SIG_MASK_REQUIRE_ENGINE_EVENT;
-                break;
+                // fallthrough
             case DETECT_ENGINE_EVENT:
                 s->mask |= SIG_MASK_REQUIRE_ENGINE_EVENT;
                 break;