mirror of https://github.com/OISF/suricata
http: do not use a loop to find the tx count
As we want the last tx Ticket: 8156 The generic function AppLayerParserGetTxCnt calls for HTTP1 Transactions.size() This function has some specific code, as we may have pre-created a tx that we do not want to count. This used to get the last tx by iterating over all the transactions waiting to find the one with max index. So, instead of using the Transactions.get function, we get the last tx out of the VecDeque and check its index.pull/14497/head
parent
5c0f95faec
commit
af246ae7ab
Loading…
Reference in New Issue