projects/linux·commit f5e229db

[IPVS]: Really invalidate persistent templates

f5e229db · Julian Anastasov <[email protected]> · 2005-09-14 21:04:23 -07:00

Agostino di Salle noticed that persistent templates are not
invalidated due to buggy optimization.

Signed-off-by: Julian Anastasov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Commit
f5e229db9cdb27f83594712ca4bb98d9377eb6ed
Parents
1c011bed

Changes

1 files changed · +1 −1

FileStatusAddDelContent
net/ipv4/ipvs/ip_vs_conn.cmodified+1−1View file

net/ipv4/ipvs/ip_vs_conn.c

View file
diff --git a/net/ipv4/ipvs/ip_vs_conn.c b/net/ipv4/ipvs/ip_vs_conn.c
index e11952e..5994521 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;