]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect: remove unused arg from get detect tx
authorVictor Julien <vjulien@oisf.net>
Tue, 11 Feb 2025 11:58:50 +0000 (12:58 +0100)
committerVictor Julien <vjulien@oisf.net>
Wed, 12 Feb 2025 06:40:18 +0000 (07:40 +0100)
src/detect.c

index 23b31af4b09182a1117e06515a68dd9054058436..19a569de1a392258f30f6cb5d47d7398a589e214 100644 (file)
@@ -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);