Skip to contentSkip to conversation

netfilter: Fix removal of GRE expectation entries created by PPTP

PATCH New Pablo Neira Ayuso 1 participant 1 message Nov 8, 2015

Subsystems (2)
lore
Share & tools
lore

Pablo Neira Ayuso

author maintainer
#0 lore raw

PATCH 1/1 netfilter: Fix removal of GRE expectation entries created by PPTP

From: Anthony Lineham <[email protected]>

The uninitialized tuple structure caused incorrect hash calculation and the lookup failed.

---
Original patch posted on kernel bugzilla.

 net/ipv4/netfilter/nf_nat_pptp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/ipv4/netfilter/nf_nat_pptp.c +1 -1
index 657d230..b3ca21b 100644
@@ -45,7 +45,7 @@ static void pptp_nat_expected(struct nf_conn *ct,
 	struct net *net = nf_ct_net(ct);
 	const struct nf_conn *master = ct->master;
 	struct nf_conntrack_expect *other_exp;
-	struct nf_conntrack_tuple t;
+	struct nf_conntrack_tuple t = {};
 	const struct nf_ct_pptp_master *ct_pptp_info;
 	const struct nf_nat_pptp *nat_pptp_info;
 	struct nf_nat_range range;
Signature · 1 line
2.1.4