aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2007-03-08 08:21:15 +0100
committerAdrian Bunk <bunk@stusta.de>2007-03-08 08:21:15 +0100
commit822f952f2ab27ca3f06d6fb3e57c34195b1e0583 (patch)
tree1239527c7413b01fea343b9d903c9a217d556d23
parent763eec030da398d17ebd85c54b1020b93435e55d (diff)
[UDP]: Reread uh pointer after pskb_trim
The header may have moved when trimming. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Adrian Bunk <bunk@stusta.de>
-rw-r--r--net/ipv4/udp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
index da51d01a510..19df8fedeb7 100644
--- a/net/ipv4/udp.c
+++ b/net/ipv4/udp.c
@@ -1137,6 +1137,7 @@ int udp_rcv(struct sk_buff *skb)
if (pskb_trim_rcsum(skb, ulen))
goto short_packet;
+ uh = skb->h.uh;
udp_checksum_init(skb, uh, ulen, saddr, daddr);