From: Patrick McHardy Date: Wed, 20 Sep 2006 19:11:12 +0000 (-0700) Subject: [NETFILTER]: PPTP conntrack: fix GRE keymap leak X-Git-Tag: upstream/snapshot3+hdmi~38334^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fd5e3befa405ea64d4db6b393b821644bf963c57;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git [NETFILTER]: PPTP conntrack: fix GRE keymap leak When destroying the GRE expectations without having seen the GRE connection the keymap entry is not freed, leading to a memory leak and, in case of a following call within the same session, failure during expectation setup. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller --- diff --git a/net/ipv4/netfilter/ip_conntrack_helper_pptp.c b/net/ipv4/netfilter/ip_conntrack_helper_pptp.c index b0225b6..98267b0 100644 --- a/net/ipv4/netfilter/ip_conntrack_helper_pptp.c +++ b/net/ipv4/netfilter/ip_conntrack_helper_pptp.c @@ -194,6 +194,7 @@ static void pptp_destroy_siblings(struct ip_conntrack *ct) { struct ip_conntrack_tuple t; + ip_ct_gre_keymap_destroy(ct); /* Since ct->sibling_list has literally rusted away in 2.6.11, * we now need another way to find out about our sibling * contrack and expects... -HW */