ipvs: fix crash with sync protocol v0 and FTP
authorJulian Anastasov <ja@ssi.bg>
Wed, 8 Jul 2015 05:31:33 +0000 (08:31 +0300)
committerDanny Wood <danwood76@gmail.com>
Tue, 29 Jan 2019 13:10:25 +0000 (13:10 +0000)
commitce08c664b99ba1dd0b5a8fbde590026ddd2030dc
tree9344e32086f5c45ee59db0096cc2e94c937965de
parent7aecadba2367dee14d90db069b7e79105b5c9384
ipvs: fix crash with sync protocol v0 and FTP

commit 56184858d1fc95c46723436b455cb7261cd8be6f upstream.

Fix crash in 3.5+ if FTP is used after switching
sync_version to 0.

Fixes: 749c42b620a9 ("ipvs: reduce sync rate with time thresholds")
Signed-off-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_sync.c