]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect/files: fix file sigs state handling 3815/head
authorVictor Julien <victor@inliniac.net>
Tue, 23 Apr 2019 09:20:59 +0000 (11:20 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 24 Apr 2019 18:15:39 +0000 (20:15 +0200)
commita6a0b0aa4a493a3d3a3f3d9a9a84b7184e14f79c
tree4c179f2d5f52759d87f7322b1eb40ac6a58c85c1
parent225cdf996e6de52e79b7b306a4e99e9b9604fa47
detect/files: fix file sigs state handling

Make sure all file sig mismatches indicate this in their return
code, not just the ones with filestore enabled. This is needed
to tell the stateful detect engine that it is dealing with a file
sig, so it can make sure these are inspected correctly even if
there are possibly multiple files per tx.
src/detect-engine-file.c
src/detect-engine-state.h
src/detect-filename.c
src/detect.c