From: Patrick McHardy Date: Wed, 11 Jul 2007 06:06:43 +0000 (-0700) Subject: [UDP]: Fix length check. X-Git-Tag: v2.6.23-rc1~1109^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3be550f34b03e5eb762f74d447ebbeba97efbd6d;p=pandora-kernel.git [UDP]: Fix length check. Rémi Denis-Courmont wrote: > Right. By the way, shouldn't "len" rather be signed in there? > > unsigned int len; > > /* if we're overly short, let UDP handle it */ > len = skb->len - sizeof(struct udphdr); > if (len <= 0) > goto udp; It should, but the < 0 case can't happen since __udp4_lib_rcv already makes sure that we have at least a complete UDP header. Anyways, this patch fixes it. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller --- Reading git-diff-tree failed