]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: fix nf_l4proto_log_invalid to log invalid packets
authorAndrei Vagin <avagin@gmail.com>
Wed, 17 Apr 2019 16:49:44 +0000 (09:49 -0700)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 22 Apr 2019 08:38:50 +0000 (10:38 +0200)
commit791f6241e1ab343d314f122c50a8f3b3078fade8
treead48077fde3d364f2d5ea783330ca5b35d2a98e6
parent9322fb6339df12f0dd9a50958c7da09905adcdd2
netfilter: fix nf_l4proto_log_invalid to log invalid packets

It doesn't log a packet if sysctl_log_invalid isn't equal to protonum
OR sysctl_log_invalid isn't equal to IPPROTO_RAW. This sentence is
always true. I believe we need to replace OR to AND.

Cc: Florian Westphal <fw@strlen.de>
Fixes: 7259705df754e ("netfilter: conntrack: add and use nf_l4proto_log_invalid")
Signed-off-by: Andrei Vagin <avagin@gmail.com>
Acked-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_proto.c