forked from Minki/linux
[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>
This commit is contained in:
parent
14a50bbaa5
commit
37012f7fd3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user