Commit 37012f7f authored by Pablo Neira Ayuso's avatar Pablo Neira Ayuso Committed by David S. Miller

[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: default avatarPablo Neira Ayuso <pablo@eurodev.net>
Signed-off-by: default avatarHarald Welte <laforge@netfilter.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 14a50bba
...@@ -204,6 +204,7 @@ static void unlink_expect(struct ip_conntrack_expect *exp) ...@@ -204,6 +204,7 @@ static void unlink_expect(struct ip_conntrack_expect *exp)
list_del(&exp->list); list_del(&exp->list);
CONNTRACK_STAT_INC(expect_delete); CONNTRACK_STAT_INC(expect_delete);
exp->master->expecting--; exp->master->expecting--;
ip_conntrack_expect_put(exp);
} }
void __ip_ct_expect_unlink_destroy(struct ip_conntrack_expect *exp) void __ip_ct_expect_unlink_destroy(struct ip_conntrack_expect *exp)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment