]> git.ipfire.org Git - thirdparty/suricata.git/commit
app-layer-expectation: clean expectation at flow end
authorEric Leblond <eric@regit.org>
Fri, 7 Feb 2020 23:05:01 +0000 (00:05 +0100)
committerEric Leblond <eric@regit.org>
Tue, 31 Mar 2020 07:39:55 +0000 (09:39 +0200)
commit230dbafa22dc015552ec73a3b0eb70e209ed2190
tree1207cff3fe1e940c564cb9e274f56b3c9267f09d
parenta4cea196c0ea9aa5f2b34a43140056d689003c13
app-layer-expectation: clean expectation at flow end

When a flow timeout, we can have still existing expectations that
are linked to this flow. Given that there is a delay between the
real ending of the flow and its destruction by Suricata, the
expectation should be already honored so we can assume the risk
to clean the expectations that have been triggered by the
to-be-deleted flow.
src/app-layer-expectation.c
src/app-layer-expectation.h
src/flow.c
src/flow.h