Skip to contentSkip to conversation

IPVS: Only match pe_data created by the same pe

PATCH In review Hans Schillstrom 1 participant 1 message Nov 12, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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.

---
 net/netfilter/ipvs/ip_vs_conn.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/netfilter/ipvs/ip_vs_conn.c +1 -1
index 1d5cead..079cc53 100644
@@ -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