]> git.ipfire.org Git - thirdparty/suricata.git/commit
protodetect: be more tolerant
authorPhilippe Antoine <contact@catenacyber.fr>
Wed, 17 Jul 2019 13:19:30 +0000 (15:19 +0200)
committerVictor Julien <vjulien@oisf.net>
Tue, 17 May 2022 08:41:24 +0000 (10:41 +0200)
commitedd163252d9fb49fea7da12dea4761999e78a975
tree70f70c3c700f889e4d123c986ada6c660b685f49
parentb6407c4253b2037cec7390364b4f0f69ccea6b0e
protodetect: be more tolerant

Do not mask protocols on both directions with only first packet

For instance :
When the first packet is no valid DNS but on port 53 (a junk request)
second packet (error response from server) does not get checked for DNS
as first packet bit masked away DNS for both directions

Ticket: #2757
src/app-layer-detect-proto.c