Explorar o código

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>
YOSHIFUJI Hideaki %!s(int64=18) %!d(string=hai) anos
pai
achega
a23cf14b16
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      net/ipv6/exthdrs.c

+ 1 - 1
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;