Skip to content

Commit

Permalink
[NETFILTER]: fix conntrack refcount leak in unlink_expect()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pablo Neira Ayuso authored and David S. Miller committed Aug 29, 2005
1 parent 14a50bb commit 37012f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/ipv4/netfilter/ip_conntrack_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 37012f7

Please sign in to comment.