]> 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 17:17:49 +0000 (18:17 +0100)
Fixed bug #2288.

src/detect.c

index 1816c4a5f1d43a18edda48c20282c9b624bedd4f..9660b025484f9d23a42105150f9db80ddd7d92ab 100644 (file)
@@ -2070,6 +2070,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;