Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83285
b: refs/heads/master
c: 8cf2294
h: refs/heads/master
i:
  83283: 80b1191
v: v3
  • Loading branch information
Herbert Xu authored and David S. Miller committed Feb 5, 2008
1 parent 681ecc7 commit feb1263
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5d8c0aa9433b09387d9021358baef7939f9b32c4
refs/heads/master: 8cf229437fd826c32a44546899412b1eb3e1db6f
3 changes: 2 additions & 1 deletion trunk/net/ipv4/icmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,8 @@ int icmp_rcv(struct sk_buff *skb)
goto error;
}

__skb_pull(skb, sizeof(*icmph));
if (!pskb_pull(skb, sizeof(*icmph)))
goto error;

icmph = icmp_hdr(skb);

Expand Down
3 changes: 2 additions & 1 deletion trunk/net/ipv6/icmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit feb1263

Please sign in to comment.