diff options
author | Patrick McHardy <kaber@trash.net> | 2006-11-14 22:49:13 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-11-16 00:18:50 -0500 |
commit | 337dde798dd1f3e4d4df4e684a0b4355dd65103d (patch) | |
tree | 02bc41b44c5b20fd8fe803749f2a87be706971a7 /net | |
parent | b96e7ecbd052a0916b6078e7600604d7e276a336 (diff) |
[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')
-rw-r--r-- | net/ipv6/netfilter/ip6_tables.c | 2 |
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, | |||
1494 | if (_frag_off) { | 1494 | if (_frag_off) { |
1495 | if (target < 0 && | 1495 | if (target < 0 && |
1496 | ((!ipv6_ext_hdr(hp->nexthdr)) || | 1496 | ((!ipv6_ext_hdr(hp->nexthdr)) || |
1497 | nexthdr == NEXTHDR_NONE)) { | 1497 | hp->nexthdr == NEXTHDR_NONE)) { |
1498 | if (fragoff) | 1498 | if (fragoff) |
1499 | *fragoff = _frag_off; | 1499 | *fragoff = _frag_off; |
1500 | return hp->nexthdr; | 1500 | return hp->nexthdr; |