From 91f153fb1dbecbd53bf465e353ce794ffa9a710a Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Wed, 27 Dec 2023 17:12:33 +0100 Subject: [PATCH] detect: constify flow flags in tx rule inspect --- src/detect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detect.c b/src/detect.c index d602a19be9..7aff832409 100644 --- a/src/detect.c +++ b/src/detect.c @@ -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;