IPv6: fix Routing Header Type 0 handling thinko
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Wed, 25 Apr 2007 02:13:49 +0000 (11:13 +0900)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 25 Apr 2007 02:26:06 +0000 (19:26 -0700)
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>
net/ipv6/exthdrs.c

index 6ed6a8c..fb39604 100644 (file)
@@ -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;