]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect: fix FP on ICMP unreachable errors 4119/head
authorVictor Julien <victor@inliniac.net>
Thu, 22 Aug 2019 09:28:36 +0000 (11:28 +0200)
committerVictor Julien <victor@inliniac.net>
Fri, 23 Aug 2019 08:28:29 +0000 (10:28 +0200)
commit6f5b81cc1f8a76afa0c13facd486852cb4bf449b
treec53cbec72a53ae3cb22e6883be0aaf2166818f30
parent1cc733ec92699e49afb9638dcd54bda3533d2bd0
detect: fix FP on ICMP unreachable errors

ICMP unreachable errors are linked to the flow they send an error for.
This would lead to the detection engine calling the TX inspection
engines on them.

The stream inspect engine would default to a match for non-UDP
and non-TCP as for ICMP we're not expected to use a TX inspect engine
for stream data.

This all would lead to a false positive match.

This patch fixes this by making sure the TX engines are not called if
the packet protocol and flow protocol are not the same.

Bug #2841.
src/detect.c