Patrick McHardy
3be550f34b
[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 <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-07-10 23:06:43 -07:00
..
2007-06-18 22:33:20 -07:00
2007-07-10 22:18:53 -07:00
2007-07-10 22:15:52 -07:00
2007-07-10 22:15:43 -07:00
2007-06-07 13:39:13 -07:00
2007-06-08 13:33:10 -07:00
2007-06-03 18:08:50 -07:00
2007-06-08 13:33:08 -07:00
2007-07-10 22:15:43 -07:00
2007-07-10 22:05:57 -07:00
2007-05-24 16:36:53 -07:00
2007-05-24 16:36:53 -07:00
2007-06-07 13:40:10 -07:00
2007-07-10 22:05:57 -07:00
2007-05-24 16:36:53 -07:00
2007-06-03 18:08:51 -07:00
2007-06-07 13:39:13 -07:00
2007-06-03 18:08:43 -07:00
2007-04-25 22:29:03 -07:00
2007-02-10 23:19:39 -08:00
2007-02-08 14:16:46 -08:00
2007-04-25 22:23:49 -07:00
2007-04-25 22:28:16 -07:00
2007-04-25 22:25:10 -07:00
2007-07-10 22:19:05 -07:00
2007-04-30 00:58:29 -07:00
2007-04-25 22:25:10 -07:00
2007-07-10 22:17:14 -07:00
2007-04-25 22:29:10 -07:00
2007-07-10 22:15:43 -07:00
2007-05-03 15:13:45 -07:00
2007-07-10 22:19:05 -07:00
2007-06-07 13:39:26 -07:00
2007-07-10 22:05:57 -07:00
2007-07-10 22:05:57 -07:00
2007-04-25 22:25:10 -07:00
2007-06-07 13:39:13 -07:00
2007-04-25 22:28:20 -07:00
2007-04-25 22:26:20 -07:00
2007-07-10 22:19:04 -07:00
2007-04-25 22:25:26 -07:00
2007-06-07 13:39:13 -07:00
2007-06-13 01:03:53 -07:00
2007-05-17 14:20:31 -07:00
2007-06-13 01:03:53 -07:00
2006-06-30 19:25:36 +02:00
2007-05-03 13:28:35 -07:00
2007-04-25 22:29:45 -07:00
2007-04-25 22:24:13 -07:00
2007-06-15 15:08:43 -07:00
2007-06-15 15:14:04 -07:00
2007-07-10 22:06:20 -07:00
2007-06-15 15:08:43 -07:00
2007-04-25 22:25:26 -07:00
2007-07-10 22:16:24 -07:00
2007-06-07 13:40:09 -07:00
2006-06-30 19:25:36 +02:00
2007-06-07 13:40:08 -07:00
2007-06-15 15:08:43 -07:00
2007-04-25 22:29:46 -07:00
2007-06-15 15:08:43 -07:00
2007-04-25 22:29:45 -07:00
2007-04-25 22:29:46 -07:00
2007-06-23 23:07:50 -07:00
2007-02-13 12:54:47 -08:00
2007-06-07 13:40:50 -07:00
2007-07-10 23:06:43 -07:00
2007-06-07 13:40:50 -07:00
2007-07-10 22:16:53 -07:00
2007-04-25 22:28:39 -07:00
2007-04-25 22:26:20 -07:00
2007-05-31 01:23:28 -07:00
2007-04-25 22:25:10 -07:00
2007-04-25 22:29:24 -07:00
2007-02-08 12:39:00 -08:00
2007-07-10 22:15:43 -07:00