]> git.ipfire.org Git - people/ms/suricata.git/commit - src/app-layer-detect-proto.c
protodetect: improve midstream handling
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 10:16:40 +0000 (11:16 +0100)
commit5285163d8f31dc89a4ab96b0842099f9792e29be
tree7799d23921fece342d8dbfb4bea27c7f6e124fea
parentf967a491047a6d8eaa232944c690dadfb0cc3c86
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.
src/app-layer-detect-proto.c