]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect/flowint: only check if packet has flow
authorVictor Julien <victor@inliniac.net>
Thu, 30 Nov 2017 06:53:31 +0000 (07:53 +0100)
committerVictor Julien <victor@inliniac.net>
Thu, 30 Nov 2017 09:05:13 +0000 (10:05 +0100)
Fixed bug #2288.

src/detect.c

index 19e49d0e429fe5bfb3fe3be0730ce670cb29c047..c756ab2ec5d040a4bf975c04cbf0d865c82c8884 100644 (file)
@@ -2071,6 +2071,12 @@ static int SignatureCreateMask(Signature *s)
                         "flowbit(s)");
                 break;
             }
+            case DETECT_FLOWINT:
+                /* flow is required for any flowint manipulation */
+                s->mask |= SIG_MASK_REQUIRE_FLOW;
+                SCLogDebug("sig requires flow to be able to manipulate "
+                        "flowint(s)");
+                break;
             case DETECT_FLAGS:
             {
                 DetectFlagsData *fl = (DetectFlagsData *)sm->ctx;