From: YOSHIFUJI Hideaki Date: Wed, 25 Apr 2007 02:13:49 +0000 (+0900) Subject: IPv6: fix Routing Header Type 0 handling thinko X-Git-Tag: firefly_0821_release~30288 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a23cf14b161b8deeb0f701d577a0e8be6365e247;p=firefly-linux-kernel-4.4.55.git IPv6: fix Routing Header Type 0 handling thinko Oops, thinko. The test for accempting a RH0 was exatly the wrong way around. Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: Linus Torvalds --- diff --git a/net/ipv6/exthdrs.c b/net/ipv6/exthdrs.c index 6ed6a8cd6a68..fb39604c3d09 100644 --- a/net/ipv6/exthdrs.c +++ b/net/ipv6/exthdrs.c @@ -399,7 +399,7 @@ static int ipv6_rthdr_rcv(struct sk_buff **skbp) break; #endif case IPV6_SRCRT_TYPE_0: - if (accept_source_route <= 0) + if (accept_source_route > 0) break; kfree_skb(skb); return -1;