Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

netfilter: Fix removal of GRE expectation entries created by PPTP

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

Link: https://bugzilla.kernel.org/show_bug.cgi?id=106441
Signed-off-by: Anthony Lineham <anthony.lineham@alliedtelesis.co.nz>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>

authored by

Anthony Lineham and committed by
Pablo Neira Ayuso
c255cb2e e75cb467

+1 -1
+1 -1
net/ipv4/netfilter/nf_nat_pptp.c
··· 45 45 struct net *net = nf_ct_net(ct); 46 46 const struct nf_conn *master = ct->master; 47 47 struct nf_conntrack_expect *other_exp; 48 - struct nf_conntrack_tuple t; 48 + struct nf_conntrack_tuple t = {}; 49 49 const struct nf_ct_pptp_master *ct_pptp_info; 50 50 const struct nf_nat_pptp *nat_pptp_info; 51 51 struct nf_nat_range range;