mirror of https://github.com/OISF/suricata
detect file: improve multi file handling
When multiple files were in a tx, the first one(s) closed/complete and a new open one as well, a match in the former could lead to not inspecting the latter. This patch adds a workaround for this case, by allowing the file inspection code to return a special code for 'match, but more files available in tx'. The stateful detection engine will then not make this match final for the tx. It relies on the file pruning to kick in to make sure the already complete files are removed from the tx before the next time the detection engine is called on the tx.pull/2028/head
parent
8cd4405c21
commit
c4a9580fce
Loading…
Reference in New Issue