Files
linux/net
Bjørn Mork 5f4213d39b ipv4: udp: fix short packet and bad checksum logging
commit ccc2d97cb7 upstream.

commit 2783ef23 moved the initialisation of saddr and daddr after
pskb_may_pull() to avoid a potential data corruption.  Unfortunately
also placing it after the short packet and bad checksum error paths,
where these variables are used for logging.  The result is bogus
output like

[92238.389505] UDP: short packet: From 2.0.0.0:65535 23715/178 to 0.0.0.0:65535

Moving the saddr and daddr initialisation above the error paths, while still
keeping it after the pskb_may_pull() to keep the fix from commit 2783ef23.

Signed-off-by: Bjørn Mork <bjorn@mork.no>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-05-26 14:29:13 -07:00
..
2009-11-02 08:43:45 -06:00
2010-02-09 04:50:56 -08:00
2009-09-26 20:16:15 -07:00
2009-11-06 00:50:39 -08:00
2009-09-02 01:03:53 -07:00
2009-09-30 16:41:34 -07:00
2010-02-09 04:50:56 -08:00
2009-10-11 23:03:47 -07:00
2009-07-12 12:22:34 -07:00
2009-09-02 01:03:53 -07:00