Skip to content

Commit

Permalink
IPv6: fix Routing Header Type 0 handling thinko
Browse files Browse the repository at this point in the history
Oops, thinko.  The test for accempting a RH0 was exatly the wrong way
around.

Signed-off-by: YOSHIFUJI Hideaki <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
yoshfuji authored and Linus Torvalds committed Apr 25, 2007
1 parent 1214538 commit a23cf14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv6/exthdrs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a23cf14

Please sign in to comment.