[ICMP]: Restore pskb_pull calls in receive function

Somewhere along the development of my ICMP relookup patch the header
length check went AWOL on the non-IPsec path.  This patch restores the
check.

Signed-off-by: Herbert Xu <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
Herbert Xu 2008-02-05 03:15:50 -08:00 • committed by David S. Miller
commit 8cf229437f
2 changed files with 4 additions and 2 deletions

View file

@ -683,7 +683,8 @@ static int icmpv6_rcv(struct sk_buff *skb)
}
}
__skb_pull(skb, sizeof(*hdr));
if (!pskb_pull(skb, sizeof(*hdr)))
goto discard_it;
hdr = icmp6_hdr(skb);