]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
netfilter: ctnetlink: put back references to master ct and expect objects
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 9 Jul 2015 20:56:00 +0000 (22:56 +0200)
committerLuis Henriques <luis.henriques@canonical.com>
Tue, 25 Aug 2015 09:13:47 +0000 (10:13 +0100)
commitc2d28e5fe653c366c938e8ffdb64ec35ba73e08e
treea9fa1a99c522b29b2eaa22243244bd8a13fcf054
parentb3453ae74501d534ff5820f9a99d40048ee59340
netfilter: ctnetlink: put back references to master ct and expect objects

commit 95dd8653de658143770cb0e55a58d2aab97c79d2 upstream.

We have to put back the references to the master conntrack and the expectation
that we just created, otherwise we'll leak them.

Fixes: 0ef71ee1a5b9 ("netfilter: ctnetlink: refactor ctnetlink_create_expect")
Reported-by: Tim Wiess <Tim.Wiess@watchguard.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
net/netfilter/nf_conntrack_netlink.c