diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2007-03-08 08:21:15 +0100 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2007-03-08 08:21:15 +0100 |
commit | 822f952f2ab27ca3f06d6fb3e57c34195b1e0583 (patch) | |
tree | 1239527c7413b01fea343b9d903c9a217d556d23 /net | |
parent | 763eec030da398d17ebd85c54b1020b93435e55d (diff) | |
download | linux-stable-822f952f2ab27ca3f06d6fb3e57c34195b1e0583.tar.gz linux-stable-822f952f2ab27ca3f06d6fb3e57c34195b1e0583.tar.bz2 linux-stable-822f952f2ab27ca3f06d6fb3e57c34195b1e0583.zip |
[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>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/udp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index da51d01a5103..19df8fedeb75 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); |