aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ipvs/ip_vs_conn.c
diff options
context:
space:
mode:
authorJulian Anastasov <ja@ssi.bg>2005-09-15 00:04:23 -0400
committerDavid S. Miller <davem@davemloft.net>2005-09-15 00:04:23 -0400
commitf5e229db9cdb27f83594712ca4bb98d9377eb6ed (patch)
treef86b99d81ae574e82e42a19f17b82d3126946a6a /net/ipv4/ipvs/ip_vs_conn.c
parent1c011bed5f49ce9e6193b18b226106a41ecfa95c (diff)
[IPVS]: Really invalidate persistent templates
Agostino di Salle noticed that persistent templates are not invalidated due to buggy optimization. Signed-off-by: Julian Anastasov <ja@ssi.bg> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ipvs/ip_vs_conn.c')
-rw-r--r--net/ipv4/ipvs/ip_vs_conn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ipvs/ip_vs_conn.c b/net/ipv4/ipvs/ip_vs_conn.c
index e11952ea17af..5994521fddc5 100644
--- a/net/ipv4/ipvs/ip_vs_conn.c
+++ b/net/ipv4/ipvs/ip_vs_conn.c
@@ -467,7 +467,7 @@ int ip_vs_check_template(struct ip_vs_conn *ct)
467 /* 467 /*
468 * Invalidate the connection template 468 * Invalidate the connection template
469 */ 469 */
470 if (ct->cport) { 470 if (ct->vport != 65535) {
471 if (ip_vs_conn_unhash(ct)) { 471 if (ip_vs_conn_unhash(ct)) {
472 ct->dport = 65535; 472 ct->dport = 65535;
473 ct->vport = 65535; 473 ct->vport = 65535;