]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect: constify flow flags in tx rule inspect
authorVictor Julien <vjulien@oisf.net>
Wed, 27 Dec 2023 16:12:33 +0000 (17:12 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 8 Jan 2024 19:23:28 +0000 (20:23 +0100)
src/detect.c

index d602a19be90f8da75e5e5855b871b363eac7cb78..7aff832409730a8e1a317274935cec04b2af5a69 100644 (file)
@@ -1062,7 +1062,7 @@ static bool DetectRunTxInspectRule(ThreadVars *tv,
         RuleMatchCandidateTx *can,
         DetectRunScratchpad *scratch)
 {
-    uint8_t flow_flags = in_flow_flags;
+    const uint8_t flow_flags = in_flow_flags;
     const int direction = (flow_flags & STREAM_TOSERVER) ? 0 : 1;
     uint32_t inspect_flags = stored_flags ? *stored_flags : 0;
     int total_matches = 0;