diff options
Diffstat (limited to 'net/ipv6/ip6_output.c')
-rw-r--r-- | net/ipv6/ip6_output.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c index a24e15557843..3221bc675654 100644 --- a/net/ipv6/ip6_output.c +++ b/net/ipv6/ip6_output.c | |||
@@ -329,10 +329,11 @@ static int ip6_forward_proxy_check(struct sk_buff *skb) | |||
329 | { | 329 | { |
330 | struct ipv6hdr *hdr = ipv6_hdr(skb); | 330 | struct ipv6hdr *hdr = ipv6_hdr(skb); |
331 | u8 nexthdr = hdr->nexthdr; | 331 | u8 nexthdr = hdr->nexthdr; |
332 | __be16 frag_off; | ||
332 | int offset; | 333 | int offset; |
333 | 334 | ||
334 | if (ipv6_ext_hdr(nexthdr)) { | 335 | if (ipv6_ext_hdr(nexthdr)) { |
335 | offset = ipv6_skip_exthdr(skb, sizeof(*hdr), &nexthdr); | 336 | offset = ipv6_skip_exthdr(skb, sizeof(*hdr), &nexthdr, &frag_off); |
336 | if (offset < 0) | 337 | if (offset < 0) |
337 | return 0; | 338 | return 0; |
338 | } else | 339 | } else |