[NETFILTER]: fix conntrack refcount leak in unlink_expect()
authorPablo Neira Ayuso <pablo@eurodev.net>
Wed, 10 Aug 2005 03:06:11 +0000 (20:06 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 29 Aug 2005 22:40:17 +0000 (15:40 -0700)
In unlink_expect(), the expectation is removed from the list so the
refcount must be dropped as well.

Signed-off-by: Pablo Neira Ayuso <pablo@eurodev.net>
Signed-off-by: Harald Welte <laforge@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/ip_conntrack_core.c

index dace93eacc5c1b05938455551159286a4e245f0f..9261388d5ac237579726692d2332703a246e013c 100644 (file)
@@ -204,6 +204,7 @@ static void unlink_expect(struct ip_conntrack_expect *exp)
        list_del(&exp->list);
        CONNTRACK_STAT_INC(expect_delete);
        exp->master->expecting--;
+       ip_conntrack_expect_put(exp);
 }
 
 void __ip_ct_expect_unlink_destroy(struct ip_conntrack_expect *exp)