IPVS: Only match pe_data created by the same pe
Subsystems (3)
PATCH 4/9 IPVS: Only match pe_data created by the same pe
From: Simon Horman <[email protected]>
Only match persistence engine data if it was created by the same persistence engine.
Reported-by Julian Anastasov <[email protected]>
Signed-off-by Simon Horman <[email protected]>
Signed-off-by Hans Schillstrom <[email protected]>
--- net/netfilter/ipvs/ip_vs_conn.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
net/netfilter/ipvs/ip_vs_conn.c +1 -1
@@ -354,7 +354,7 @@ struct ip_vs_conn *ip_vs_ct_in_get(const struct ip_vs_conn_param *p)list_for_each_entry (cp, &ip_vs_conn_tab[hash], c_list) {if (p->pe_data && p->pe->ct_match) { -if (p->pe->ct_match (p, cp)) +if (p->pe == cp->pe && p->pe->ct_match (p, cp)) goto out;continue ; }
Signature · 1 line
1.7.2.3