From: Simon Horman Date: Mon, 8 Nov 2010 11:06:30 +0000 (+0900) Subject: IPVS: Only match pe_data created by the same pe X-Git-Tag: MMI-PSA29.97-13-9~20520^2~510^2~26^2~6 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ea2c73afc23db3084fd857b027446c38fc7ff2c9;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git IPVS: Only match pe_data created by the same pe Only match persistence engine data if it was created by the same persistence engine. Reported-by: Julian Anastasov Signed-off-by: Simon Horman --- diff --git a/net/netfilter/ipvs/ip_vs_conn.c b/net/netfilter/ipvs/ip_vs_conn.c index 64a9ca314100..261db1a17633 100644 --- a/net/netfilter/ipvs/ip_vs_conn.c +++ b/net/netfilter/ipvs/ip_vs_conn.c @@ -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; }