]> git.ipfire.org Git - thirdparty/suricata.git/commit
protodetect: improve midstream handling 5895/head
authorIlya Bakhtin <ilya.bakhtin@gmail.com>
Mon, 15 Feb 2021 17:36:46 +0000 (18:36 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 22 Feb 2021 13:15:29 +0000 (14:15 +0100)
commit24eeabfbf907e5d02d25ab5aa29871018294b646
treef131c5c66025bf271bdaa4ce370fcda99cc2ad3c
parentf0beb239fe649c347a56bfae338654365c762505
protodetect: improve midstream handling

Set "done flag" only if parsers for both directions are not found in a
case of midstream parsers from other direction are tried if nothing is found
for the initial one. "done flag" must be set if nothing is found in both
directions. Otherwise processing of incomplete data is terminated at the very
first try.

(cherry picked from commit 5285163d8f31dc89a4ab96b0842099f9792e29be)
src/app-layer-detect-proto.c