提交 a23cf14b 编写于 作者: Y YOSHIFUJI Hideaki 提交者: 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: NYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册