Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 190766
b: refs/heads/master
c: ccc2d97
h: refs/heads/master
v: v3
  • Loading branch information
Bjørn Mork authored and David S. Miller committed May 7, 2010
1 parent 6d43ea7 commit 19a7630
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 80ea76bb2575c426154b8d61d324197ee3592baa
refs/heads/master: ccc2d97cb7c798e785c9f198de243e2b59f7073b
6 changes: 3 additions & 3 deletions trunk/net/ipv4/udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1527,6 +1527,9 @@ int __udp4_lib_rcv(struct sk_buff *skb, struct udp_table *udptable,

uh = udp_hdr(skb);
ulen = ntohs(uh->len);
saddr = ip_hdr(skb)->saddr;
daddr = ip_hdr(skb)->daddr;

if (ulen > skb->len)
goto short_packet;

Expand All @@ -1540,9 +1543,6 @@ int __udp4_lib_rcv(struct sk_buff *skb, struct udp_table *udptable,
if (udp4_csum_init(skb, uh, proto))
goto csum_error;

saddr = ip_hdr(skb)->saddr;
daddr = ip_hdr(skb)->daddr;

if (rt->rt_flags & (RTCF_BROADCAST|RTCF_MULTICAST))
return __udp4_lib_mcast_deliver(net, skb, uh,
saddr, daddr, udptable);
Expand Down

0 comments on commit 19a7630

Please sign in to comment.