Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 56184858 authored by Julian Anastasov's avatar Julian Anastasov Committed by Simon Horman
Browse files

ipvs: fix crash with sync protocol v0 and FTP



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

Fixes: 749c42b6 ("ipvs: reduce sync rate with time thresholds")
Signed-off-by: default avatarJulian Anastasov <ja@ssi.bg>
Signed-off-by: default avatarSimon Horman <horms@verge.net.au>
parent 71563f34
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
	}
}