]> git.ipfire.org Git - thirdparty/suricata.git/commit
protodetect: improve midstream handling 5893/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:03 +0000 (14:15 +0100)
commitdc75420baab74f1276e8090e01dd96b7b8e85355
tree7927df16bb596a40da785fa3aaa6bf04b8bc979e
parent83b06c1558ad0149c57384ea6272d5f6f5627875
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