mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-17 02:50:50 +09:00
ipvs: fix crash with sync protocol v0 and FTP
commit56184858d1upstream. Fix crash in 3.5+ if FTP is used after switching sync_version to 0. Fixes:749c42b620("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
212c45ac20
commit
2fc9fc91a5
@@ -599,7 +599,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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user