diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2007-03-06 20:26:48 -0800 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-03-07 16:08:04 -0800 |
commit | d644329bc9f10213a282387dfe4984ff891dd768 (patch) | |
tree | a22fa4740a9bba8f8b994a9b988cc5bc68da9538 /net/ipv4/udp.c | |
parent | ba5dcee128d9f2877a6d2a5b150c24d90d77dad1 (diff) | |
download | kernel_samsung_aries-d644329bc9f10213a282387dfe4984ff891dd768.zip kernel_samsung_aries-d644329bc9f10213a282387dfe4984ff891dd768.tar.gz kernel_samsung_aries-d644329bc9f10213a282387dfe4984ff891dd768.tar.bz2 |
[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>
Diffstat (limited to 'net/ipv4/udp.c')
-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 ce6c460..fc620a7 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c @@ -1215,6 +1215,7 @@ int __udp4_lib_rcv(struct sk_buff *skb, struct hlist_head udptable[], if (ulen < sizeof(*uh) || pskb_trim_rcsum(skb, ulen)) goto short_packet; + uh = skb->h.uh; udp4_csum_init(skb, uh); |