diff options
Diffstat (limited to 'net/ipv6/icmp.c')
-rw-r--r-- | net/ipv6/icmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/icmp.c b/net/ipv6/icmp.c index 87b9082ceab2..8e0f569b883e 100644 --- a/net/ipv6/icmp.c +++ b/net/ipv6/icmp.c | |||
@@ -135,7 +135,7 @@ static int is_ineligible(struct sk_buff *skb) | |||
135 | if (len < 0) | 135 | if (len < 0) |
136 | return 1; | 136 | return 1; |
137 | 137 | ||
138 | ptr = ipv6_skip_exthdr(skb, ptr, &nexthdr, len); | 138 | ptr = ipv6_skip_exthdr(skb, ptr, &nexthdr); |
139 | if (ptr < 0) | 139 | if (ptr < 0) |
140 | return 0; | 140 | return 0; |
141 | if (nexthdr == IPPROTO_ICMPV6) { | 141 | if (nexthdr == IPPROTO_ICMPV6) { |
@@ -514,7 +514,7 @@ static void icmpv6_notify(struct sk_buff *skb, int type, int code, u32 info) | |||
514 | nexthdr = ((struct ipv6hdr *)skb->data)->nexthdr; | 514 | nexthdr = ((struct ipv6hdr *)skb->data)->nexthdr; |
515 | if (ipv6_ext_hdr(nexthdr)) { | 515 | if (ipv6_ext_hdr(nexthdr)) { |
516 | /* now skip over extension headers */ | 516 | /* now skip over extension headers */ |
517 | inner_offset = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &nexthdr, skb->len - sizeof(struct ipv6hdr)); | 517 | inner_offset = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &nexthdr); |
518 | if (inner_offset<0) | 518 | if (inner_offset<0) |
519 | return; | 519 | return; |
520 | } else { | 520 | } else { |