From: Patrick McHardy Date: Wed, 15 Nov 2006 03:49:13 +0000 (-0800) Subject: [NETFILTER]: ip6_tables: use correct nexthdr value in ipv6_find_hdr() X-Git-Tag: v2.6.19~87^2~2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=337dde798dd1f3e4d4df4e684a0b4355dd65103d;p=linux-2.6-omap-h63xx.git [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 Signed-off-by: David S. Miller --- diff --git a/net/ipv6/netfilter/ip6_tables.c b/net/ipv6/netfilter/ip6_tables.c index 167c2ea88f6..204e02162d4 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;