Commit f5e229db authored by Julian Anastasov's avatar Julian Anastasov Committed by David S. Miller

[IPVS]: Really invalidate persistent templates

Agostino di Salle noticed that persistent templates are not
invalidated due to buggy optimization.
Signed-off-by: default avatarJulian Anastasov <ja@ssi.bg>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1c011bed
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment