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 <yoshfuji@linux-ipv6.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
12145387a0
commit
a23cf14b16
|
@ -399,7 +399,7 @@ static int ipv6_rthdr_rcv(struct sk_buff **skbp)
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
case IPV6_SRCRT_TYPE_0:
|
case IPV6_SRCRT_TYPE_0:
|
||||||
if (accept_source_route <= 0)
|
if (accept_source_route > 0)
|
||||||
break;
|
break;
|
||||||
kfree_skb(skb);
|
kfree_skb(skb);
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in New Issue