]> git.ipfire.org Git - thirdparty/suricata.git/commit
protodetect: opposing side cannot change protocol
authorPhilippe Antoine <contact@catenacyber.fr>
Fri, 16 Jul 2021 12:22:28 +0000 (14:22 +0200)
committerVictor Julien <vjulien@oisf.net>
Mon, 15 Nov 2021 12:25:17 +0000 (13:25 +0100)
commit36e6d632df258abcf133be3b50144311e6212a1d
tree8ae73aaef5b90117bf3a1b3a3dfc9f4da874c590
parentf6dd81ad7edb587e7715842b6e604cc7fe76efee
protodetect: opposing side cannot change protocol

Ticket: #4562

As the data which triggered the opposing side
was the same protocol and not another one,
that means the protocol change failed.

Prevents a memory leak in later call of AppLayerParserParse
which would allocate a new state and leak the old one

(cherry picked from commit be617a3c1b25a7a4b1acdc7b65d3733d4f48a1f9)
src/app-layer.c