From: Philippe Antoine Date: Mon, 7 Jul 2025 20:25:13 +0000 (+0200) Subject: htp: use transactions right get function X-Git-Tag: suricata-8.0.1~47 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F13772%2Fhead;p=thirdparty%2Fsuricata.git htp: use transactions right get function Not the VecDeque one Ticket: 7803 --- diff --git a/rust/htp/src/transactions.rs b/rust/htp/src/transactions.rs index f46824115c..d204c39e96 100644 --- a/rust/htp/src/transactions.rs +++ b/rust/htp/src/transactions.rs @@ -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