projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1214538
)
IPv6: fix Routing Header Type 0 handling thinko
author
YOSHIFUJI Hideaki
<yoshfuji@linux-ipv6.org>
Wed, 25 Apr 2007 02:13:49 +0000
(11:13 +0900)
committer
Linus 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
patch
|
blob
|
history
diff --git
a/net/ipv6/exthdrs.c
b/net/ipv6/exthdrs.c
index 6ed6a8cd6a68616a2773ed0cbd4f40853f6aef74..fb39604c3d0945da29ad54726e4b05b498043820 100644
(file)
--- a/
net/ipv6/exthdrs.c
+++ b/
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;