Commit 56184858d1fc95c46723436b455cb7261cd8be6f

Authored by Julian Anastasov
Committed by Simon Horman
1 parent 71563f3414

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

net/netfilter/ipvs/ip_vs_sync.c
... ... @@ -612,7 +612,7 @@
612 612 pkts = atomic_add_return(1, &cp->in_pkts);
613 613 else
614 614 pkts = sysctl_sync_threshold(ipvs);
615   - ip_vs_sync_conn(net, cp->control, pkts);
  615 + ip_vs_sync_conn(net, cp, pkts);
616 616 }
617 617 }
618 618