Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 684f7b29 authored by Pablo Neira Ayuso's avatar Pablo Neira Ayuso Committed by David S. Miller
Browse files

[NETFILTER]: ctnetlink: remove bogus checks in ICMP protocol at dumping

parent d695aa8a
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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: