diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2006-01-05 12:16:41 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-01-05 12:16:41 -0800 |
commit | 684f7b296c0cb8238ce63f1828d33a00d5f3a26e (patch) | |
tree | 97b357cc6a07bf38d071d0cce41227d43217b1e6 /net | |
parent | d695aa8a1f133359485e15db06d53e15e7309e4d (diff) | |
download | op-kernel-dev-684f7b296c0cb8238ce63f1828d33a00d5f3a26e.zip op-kernel-dev-684f7b296c0cb8238ce63f1828d33a00d5f3a26e.tar.gz |
[NETFILTER]: ctnetlink: remove bogus checks in ICMP protocol at dumping
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/netfilter/ip_conntrack_proto_icmp.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/net/ipv4/netfilter/ip_conntrack_proto_icmp.c b/net/ipv4/netfilter/ip_conntrack_proto_icmp.c index 5f9925d..19cc550 100644 --- a/net/ipv4/netfilter/ip_conntrack_proto_icmp.c +++ b/net/ipv4/netfilter/ip_conntrack_proto_icmp.c @@ -279,10 +279,6 @@ static int icmp_tuple_to_nfattr(struct sk_buff *skb, NFA_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: |