diff options
author | David S. Miller <davem@davemloft.net> | 2010-05-12 03:05:35 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-05-12 03:05:35 -0400 |
commit | 278554bd6579206921f5d8a523649a7a57f8850d (patch) | |
tree | 4e6c527daf0910e455b3aa72e2c96b0479e430be /net/ipv4/udp.c | |
parent | 5a147e8bf982f9dd414c1dd751fe02c1942506b2 (diff) | |
parent | cea0d767c29669bf89f86e4aee46ef462d2ebae8 (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts:
Documentation/feature-removal-schedule.txt
drivers/net/wireless/ath/ar9170/usb.c
drivers/scsi/iscsi_tcp.c
net/ipv4/ipmr.c
Diffstat (limited to 'net/ipv4/udp.c')
-rw-r--r-- | net/ipv4/udp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index 4560b291180b..f3e00c5cd1ed 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c | |||
@@ -1536,6 +1536,9 @@ int __udp4_lib_rcv(struct sk_buff *skb, struct udp_table *udptable, | |||
1536 | 1536 | ||
1537 | uh = udp_hdr(skb); | 1537 | uh = udp_hdr(skb); |
1538 | ulen = ntohs(uh->len); | 1538 | ulen = ntohs(uh->len); |
1539 | saddr = ip_hdr(skb)->saddr; | ||
1540 | daddr = ip_hdr(skb)->daddr; | ||
1541 | |||
1539 | if (ulen > skb->len) | 1542 | if (ulen > skb->len) |
1540 | goto short_packet; | 1543 | goto short_packet; |
1541 | 1544 | ||
@@ -1549,9 +1552,6 @@ int __udp4_lib_rcv(struct sk_buff *skb, struct udp_table *udptable, | |||
1549 | if (udp4_csum_init(skb, uh, proto)) | 1552 | if (udp4_csum_init(skb, uh, proto)) |
1550 | goto csum_error; | 1553 | goto csum_error; |
1551 | 1554 | ||
1552 | saddr = ip_hdr(skb)->saddr; | ||
1553 | daddr = ip_hdr(skb)->daddr; | ||
1554 | |||
1555 | if (rt->rt_flags & (RTCF_BROADCAST|RTCF_MULTICAST)) | 1555 | if (rt->rt_flags & (RTCF_BROADCAST|RTCF_MULTICAST)) |
1556 | return __udp4_lib_mcast_deliver(net, skb, uh, | 1556 | return __udp4_lib_mcast_deliver(net, skb, uh, |
1557 | saddr, daddr, udptable); | 1557 | saddr, daddr, udptable); |