[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 <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Herbert Xu and committed by David S. Miller 8cf22943 5d8c0aa9

+4 -2
+2 -1
net/ipv4/icmp.c
··· 1015 goto error; 1016 } 1017 1018 - __skb_pull(skb, sizeof(*icmph)); 1019 1020 icmph = icmp_hdr(skb); 1021
··· 1015 goto error; 1016 } 1017 1018 + if (!pskb_pull(skb, sizeof(*icmph))) 1019 + goto error; 1020 1021 icmph = icmp_hdr(skb); 1022
+2 -1
net/ipv6/icmp.c
··· 683 } 684 } 685 686 - __skb_pull(skb, sizeof(*hdr)); 687 688 hdr = icmp6_hdr(skb); 689
··· 683 } 684 } 685 686 + if (!pskb_pull(skb, sizeof(*hdr))) 687 + goto discard_it; 688 689 hdr = icmp6_hdr(skb); 690