From: Victor Julien Date: Wed, 27 Dec 2023 16:12:33 +0000 (+0100) Subject: detect: constify flow flags in tx rule inspect X-Git-Tag: suricata-8.0.0-beta1~1862 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91f153fb1dbecbd53bf465e353ce794ffa9a710a;p=thirdparty%2Fsuricata.git detect: constify flow flags in tx rule inspect --- 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;