mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-10 14:15:47 -05:00
[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>
This commit is contained in:
committed by
David S. Miller
parent
1c011bed5f
commit
f5e229db9c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user