ipvs: uninitialized data with IP_VS_IPV6
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 6 Dec 2014 13:49:24 +0000 (16:49 +0300)
committerSimon Horman <horms@verge.net.au>
Wed, 10 Dec 2014 08:36:47 +0000 (17:36 +0900)
commit3b05ac3824ed9648c0d9c02d51d9b54e4e7e874f
treee6c33517e937534907789feacbf60e9c0bc6bb3e
parentd6b00fec5dbbe976904b4d77e7d4f9493df5c2ec
ipvs: uninitialized data with IP_VS_IPV6

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>
net/netfilter/ipvs/ip_vs_ftp.c