diff options
author | Julian Anastasov <ja@ssi.bg> | 2015-07-08 08:31:33 +0300 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2015-07-14 16:41:27 +0900 |
commit | 56184858d1fc95c46723436b455cb7261cd8be6f (patch) | |
tree | 088055e73ab61fba9994e645e648f2184f0abc70 /net | |
parent | 71563f3414e917c62acd8e0fb0edf8ed6af63e4b (diff) | |
download | blackbird-op-linux-56184858d1fc95c46723436b455cb7261cd8be6f.tar.gz blackbird-op-linux-56184858d1fc95c46723436b455cb7261cd8be6f.zip |
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: 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>
Diffstat (limited to 'net')
-rw-r--r-- | net/netfilter/ipvs/ip_vs_sync.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/ipvs/ip_vs_sync.c b/net/netfilter/ipvs/ip_vs_sync.c index b08ba9538d12..d99ad93eb855 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); } } |