From: Victor Julien Date: Tue, 11 Feb 2025 11:58:50 +0000 (+0100) Subject: detect: remove unused arg from get detect tx X-Git-Tag: suricata-8.0.0-beta1~457 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5928adc852fb15acdba664cf62cb40e2ca359f9c;p=thirdparty%2Fsuricata.git detect: remove unused arg from get detect tx --- diff --git a/src/detect.c b/src/detect.c index 23b31af4b0..19a569de1a 100644 --- a/src/detect.c +++ b/src/detect.c @@ -1313,8 +1313,7 @@ static bool DetectRunTxInspectRule(ThreadVars *tv, * \retval struct filled with relevant info or all nulls/0s */ static DetectTransaction GetDetectTx(const uint8_t ipproto, const AppProto alproto, - void *alstate, const uint64_t tx_id, void *tx_ptr, const int tx_end_state, - const uint8_t flow_flags) + const uint64_t tx_id, void *tx_ptr, const int tx_end_state, const uint8_t flow_flags) { AppLayerTxData *txd = AppLayerParserGetTxData(ipproto, alproto, tx_ptr); if (unlikely(txd == NULL)) { @@ -1476,8 +1475,8 @@ static void DetectRunTx(ThreadVars *tv, if (ires.tx_ptr == NULL) break; - DetectTransaction tx = GetDetectTx(ipproto, alproto, - alstate, ires.tx_id, ires.tx_ptr, tx_end_state, flow_flags); + DetectTransaction tx = + GetDetectTx(ipproto, alproto, ires.tx_id, ires.tx_ptr, tx_end_state, flow_flags); if (tx.tx_ptr == NULL) { SCLogDebug("%p/%"PRIu64" no transaction to inspect", tx.tx_ptr, tx_id_min);