]> git.ipfire.org Git - thirdparty/suricata.git/commit
protocol: forbids concurrent protocol upgrades
authorPhilippe Antoine <contact@catenacyber.fr>
Fri, 8 Apr 2022 12:40:02 +0000 (14:40 +0200)
committerJason Ish <jason.ish@oisf.net>
Sat, 9 Jul 2022 15:09:51 +0000 (09:09 -0600)
commite55eeb3bdee1a57f17a21ca509385c84caaa4469
treed5a4af9ee792b570e42d6436ee4c892a287f28dd
parent2c7c7cf315dfe018f1c9c871db0c7de8257979fa
protocol: forbids concurrent protocol upgrades

Ticket: 5243

When switching from SMTP to TLS, and getting HTTP1 instead of
expected TLS, and HTTP1 requesting upgrade to HTTP2, we do not
overwrite the alproto_orig value so as not to have type confusion
in AppLayerParserStateProtoCleanup

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