summaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorPatrick McHardy2006-11-15 04:49:13 +0100
committerDavid S. Miller2006-11-16 06:18:50 +0100
commit337dde798dd1f3e4d4df4e684a0b4355dd65103d (patch)
tree02bc41b44c5b20fd8fe803749f2a87be706971a7 /net/ipv6
parent[NETFILTER]: ip6_tables: fixed conflicted optname for getsockopt (diff)
downloadkernel-qcow2-linux-337dde798dd1f3e4d4df4e684a0b4355dd65103d.tar.gz
kernel-qcow2-linux-337dde798dd1f3e4d4df4e684a0b4355dd65103d.tar.xz
kernel-qcow2-linux-337dde798dd1f3e4d4df4e684a0b4355dd65103d.zip
[NETFILTER]: ip6_tables: use correct nexthdr value in ipv6_find_hdr()
nexthdr is NEXTHDR_FRAGMENT, the nexthdr value from the fragment header is hp->nexthdr. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/netfilter/ip6_tables.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/netfilter/ip6_tables.c b/net/ipv6/netfilter/ip6_tables.c
index 167c2ea88f6b..204e02162d49 100644
--- a/net/ipv6/netfilter/ip6_tables.c
+++ b/net/ipv6/netfilter/ip6_tables.c
@@ -1494,7 +1494,7 @@ int ipv6_find_hdr(const struct sk_buff *skb, unsigned int *offset,
if (_frag_off) {
if (target < 0 &&
((!ipv6_ext_hdr(hp->nexthdr)) ||
- nexthdr == NEXTHDR_NONE)) {
+ hp->nexthdr == NEXTHDR_NONE)) {
if (fragoff)
*fragoff = _frag_off;
return hp->nexthdr;