diff options
author | Pablo Neira Ayuso <pablo@eurodev.net> | 2005-08-09 23:06:11 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2005-08-29 18:40:17 -0400 |
commit | 37012f7fd326eb3c959428a4fe7e203e6304fe43 (patch) | |
tree | 018066c05be0924990ed9a79ccef0ab553f6b710 /net | |
parent | 14a50bbaa51202b676a95e9b41bc5ed6c77aa9cc (diff) |
[NETFILTER]: fix conntrack refcount leak in unlink_expect()
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/netfilter/ip_conntrack_core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/netfilter/ip_conntrack_core.c b/net/ipv4/netfilter/ip_conntrack_core.c index dace93eacc5c..9261388d5ac2 100644 --- a/net/ipv4/netfilter/ip_conntrack_core.c +++ b/net/ipv4/netfilter/ip_conntrack_core.c | |||
@@ -204,6 +204,7 @@ static void unlink_expect(struct ip_conntrack_expect *exp) | |||
204 | list_del(&exp->list); | 204 | list_del(&exp->list); |
205 | CONNTRACK_STAT_INC(expect_delete); | 205 | CONNTRACK_STAT_INC(expect_delete); |
206 | exp->master->expecting--; | 206 | exp->master->expecting--; |
207 | ip_conntrack_expect_put(exp); | ||
207 | } | 208 | } |
208 | 209 | ||
209 | void __ip_ct_expect_unlink_destroy(struct ip_conntrack_expect *exp) | 210 | void __ip_ct_expect_unlink_destroy(struct ip_conntrack_expect *exp) |