Commit 070b1327 authored by Ian Pratt's avatar Ian Pratt Committed by David S. Miller

[IPV4]: Missing pskb_may_pull in icmp_filter.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 11bee7c3
......@@ -130,6 +130,9 @@ static __inline__ int icmp_filter(struct sock *sk, struct sk_buff *skb)
{
int type;
if (!pskb_may_pull(skb, sizeof(struct icmphdr)))
return 1;
type = skb->h.icmph->type;
if (type < 32) {
__u32 data = raw4_sk(sk)->filter.data;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment