瀏覽代碼

[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>
Julian Anastasov 19 年之前
父節點
當前提交
f5e229db9c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      net/ipv4/ipvs/ip_vs_conn.c

+ 1 - 1
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;