Remove bogus checking in ICMP
Subsystems (2)
Pablo Neira Ayuso
maintainerPATCH 1/8 Remove bogus checking in ICMP
Signature · 3 lines
-- The dawn of the fourth age of Linux firewalling is coming; a time of great struggle and heroic deeds -- J.Kadlecsik got inspired by J.Morris
Remove bogus checkings in the ICMP protocol handler at dumping.
Signed-off-by Pablo Neira Ayuso <[email protected]>
net/ipv4/netfilter/ip_conntrack_proto_icmp.c +0 -4
@@ -279,10 +279,6 @@ static int icmp_tuple_to_nfattr(struct sNFA_PUT (skb,CTA_PROTO_ICMP_CODE ,sizeof (u_int8_t), &t->dst.u.icmp.code); -if (t->dst.u.icmp.type >=sizeof (valid_new) - || !valid_new[t->dst.u.icmp.type]) -return -EINVAL ; -return 0 ; nfattr_failure: