Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130987
b: refs/heads/master
c: 7b5e56f
h: refs/heads/master
i:
  130985: 8f1843e
  130983: 628646c
v: v3
  • Loading branch information
Jesper Dangaard Brouer authored and David S. Miller committed Feb 5, 2009
1 parent 3837817 commit ded78a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: b98ac702f49042ab0c382b839465b95a2bd0cd65
refs/heads/master: 7b5e56f9d635643ad54f2f42e69ad16b80a2cff1
3 changes: 2 additions & 1 deletion trunk/net/ipv4/udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1231,7 +1231,7 @@ int __udp4_lib_rcv(struct sk_buff *skb, struct udp_table *udptable,
int proto)
{
struct sock *sk;
struct udphdr *uh = udp_hdr(skb);
struct udphdr *uh;
unsigned short ulen;
struct rtable *rt = (struct rtable*)skb->dst;
__be32 saddr = ip_hdr(skb)->saddr;
Expand All @@ -1244,6 +1244,7 @@ int __udp4_lib_rcv(struct sk_buff *skb, struct udp_table *udptable,
if (!pskb_may_pull(skb, sizeof(struct udphdr)))
goto drop; /* No space for header. */

uh = udp_hdr(skb);
ulen = ntohs(uh->len);
if (ulen > skb->len)
goto short_packet;
Expand Down

0 comments on commit ded78a4

Please sign in to comment.