From 822f952f2ab27ca3f06d6fb3e57c34195b1e0583 Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Thu, 8 Mar 2007 08:21:15 +0100 Subject: [UDP]: Reread uh pointer after pskb_trim The header may have moved when trimming. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller Signed-off-by: Adrian Bunk --- net/ipv4/udp.c | 1 + 1 file changed, 1 insertion(+) (limited to 'net') 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); -- cgit v1.2.3