From: Julian Anastasov Date: Wed, 8 Jul 2015 05:31:33 +0000 (+0300) Subject: ipvs: fix crash with sync protocol v0 and FTP X-Git-Tag: v3.16.35~1508 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e0720f0d0bc623ad16cb174c924f6690801933f6;p=thirdparty%2Fkernel%2Fstable.git 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 Signed-off-by: Simon Horman Signed-off-by: Luis Henriques --- diff --git a/net/netfilter/ipvs/ip_vs_sync.c b/net/netfilter/ipvs/ip_vs_sync.c index a8027e73b6a2f..a108953a8c2c8 100644 --- a/net/netfilter/ipvs/ip_vs_sync.c +++ b/net/netfilter/ipvs/ip_vs_sync.c @@ -612,7 +612,7 @@ static void ip_vs_sync_conn_v0(struct net *net, struct ip_vs_conn *cp, pkts = atomic_add_return(1, &cp->in_pkts); else pkts = sysctl_sync_threshold(ipvs); - ip_vs_sync_conn(net, cp->control, pkts); + ip_vs_sync_conn(net, cp, pkts); } }