ipvs: uninitialized data with IP_VS_IPV6
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 6 Dec 2014 13:49:24 +0000 (16:49 +0300)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 9 May 2015 22:16:41 +0000 (23:16 +0100)
commit0ce625baeec39e813bef9b073f0214b513b2ef2d
treee4ed200cf2d090f26d701ae73658421930e65526
parente5a4bc2e0b01b1a484091379a1a7f8ce098fb429
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: Ben Hutchings <ben@decadent.org.uk>
Cc: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/ipvs/ip_vs_ftp.c