ipvs: uninitialized data with IP_VS_IPV6
commit0838c7fba01ddf0114d0a0b9ddd5f921c2370da9
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 6 Dec 2014 13:49:24 +0000 (6 16:49 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 30 Jan 2015 01:40:50 +0000 (29 17:40 -0800)
treedc1cad01fd4c696ac076aede171dafa78449be74
parent15d25f97e23d65b62c4c99ea4769940fced9250d
ipvs: uninitialized data with IP_VS_IPV6

commit 3b05ac3824ed9648c0d9c02d51d9b54e4e7e874f upstream.

The app_tcp_pkt_out() function expects "*diff" to be set and ends up
using uninitialized data if CONFIG_IP_VS_IPV6 is turned on.

The same issue is there in app_tcp_pkt_in().  Thanks to Julian Anastasov
for noticing that.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/netfilter/ipvs/ip_vs_ftp.c