]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect: don't run IP inspection on non-IP packets 2549/head
authorVictor Julien <victor@inliniac.net>
Wed, 8 Feb 2017 12:55:34 +0000 (13:55 +0100)
committerVictor Julien <victor@inliniac.net>
Wed, 8 Feb 2017 12:55:34 +0000 (13:55 +0100)
commit86222428dd51adf2b6ff562a49e0e1ed22e0da76
tree293c52f15ab20955401c63accee54f34c2a85bd5
parent4683b0e662aa1349168c9706440aaeab1bef0e47
detect: don't run IP inspection on non-IP packets

The code to get the rule group (sgh) would return the group for
IP proto 0 instead of nothing. This lead to certain types of rules
unintentionally matching (False Positive).

Since the packets weren't actually IP, the logged alert records
were missing the IP header.

Bug #2017.
src/detect.c