aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2007-04-24 22:13:49 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-04-24 22:26:06 -0400
commita23cf14b161b8deeb0f701d577a0e8be6365e247 (patch)
tree7a8ca5ca9a4cab97063c9f2e4f7185997f2b362b
parent12145387a042e8aa4439485f8976e6992a529b12 (diff)
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>
-rw-r--r--net/ipv6/exthdrs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/exthdrs.c b/net/ipv6/exthdrs.c
index 6ed6a8cd6a68..fb39604c3d09 100644
--- a/net/ipv6/exthdrs.c
+++ b/net/ipv6/exthdrs.c
@@ -399,7 +399,7 @@ static int ipv6_rthdr_rcv(struct sk_buff **skbp)
399 break; 399 break;
400#endif 400#endif
401 case IPV6_SRCRT_TYPE_0: 401 case IPV6_SRCRT_TYPE_0:
402 if (accept_source_route <= 0) 402 if (accept_source_route > 0)
403 break; 403 break;
404 kfree_skb(skb); 404 kfree_skb(skb);
405 return -1; 405 return -1;