]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
htp: use transactions right get function 13772/head
authorPhilippe Antoine <pantoine@oisf.net>
Mon, 7 Jul 2025 20:25:13 +0000 (22:25 +0200)
committerVictor Julien <victor@inliniac.net>
Sat, 30 Aug 2025 07:51:06 +0000 (09:51 +0200)
Not the VecDeque one

Ticket: 7803

rust/htp/src/transactions.rs

index f46824115ccc41e2276234b99b5d268925818823..d204c39e9604e172bc704bf1e3f706ede5035d20 100644 (file)
@@ -33,7 +33,7 @@ impl Transactions {
         // that transaction is started), or zero if neither
         // request or response transaction exist yet
         let tx_to_check = std::cmp::max(self.request, self.response);
-        match self.transactions.get(tx_to_check) {
+        match self.get(tx_to_check) {
             // Transaction is created, check if it is started
             Some(tx) => tx.index.wrapping_add(tx.is_started() as usize),
             // Transaction doesn't exist yet, so the index is the size