From: Julian Anastasov Date: Thu, 15 Sep 2005 04:04:23 +0000 (-0700) Subject: [IPVS]: Really invalidate persistent templates X-Git-Tag: v2.6.14-rc2~16 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=f5e229db9cdb27f83594712ca4bb98d9377eb6ed;p=linux-2.6-omap-h63xx.git [IPVS]: Really invalidate persistent templates Agostino di Salle noticed that persistent templates are not invalidated due to buggy optimization. Signed-off-by: Julian Anastasov Signed-off-by: David S. Miller --- diff --git a/net/ipv4/ipvs/ip_vs_conn.c b/net/ipv4/ipvs/ip_vs_conn.c index e11952ea17a..5994521fddc 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) /* * Invalidate the connection template */ - if (ct->cport) { + if (ct->vport != 65535) { if (ip_vs_conn_unhash(ct)) { ct->dport = 65535; ct->vport = 65535;