Commit a23cf14b authored by YOSHIFUJI Hideaki's avatar YOSHIFUJI Hideaki Committed by Linus Torvalds

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: default avatarYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 12145387
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment