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

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;