]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect: fix tx iterator logic in detect 3273/head
authorVictor Julien <victor@inliniac.net>
Thu, 8 Mar 2018 07:35:16 +0000 (08:35 +0100)
committerVictor Julien <victor@inliniac.net>
Thu, 8 Mar 2018 07:48:43 +0000 (08:48 +0100)
commit19988310d1dfe941be7fd9231a64c98aba7391d2
tree9526de65506c6feddc7c1ebf70f9b2947a1ed19a
parentfec5997d1d6228401b2941cf87eddf694637aaa5
detect: fix tx iterator logic in detect

The 'tx_id' variable was used to be passed into the IterFunc as a
minumum tx to return. The IterFunc could then return either the tx
for that id, or a later one if that turned out to be the first available
tx.

The tx_id however, was still used for some things as if it was the
current tx id. Most importantly for setting the tx id for alert
ammending. So this could lead to alerts with missing or wrong
applayer records.
src/detect.c