netfilter: ctnetlink: put back references to master ct and expect objects
Subsystems (3)
Pablo Neira Ayuso
maintainerPATCH 1/1 netfilter: ctnetlink: put back references to master ct and expect objects
[ upstream commit 95dd8653de658143770cb0e55a58d2aab97c79d2 ]
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")
Cc <[email protected]> # 3.12.x
Cc <[email protected]> # 3.14.x
Cc <[email protected]> # 3.18.x
Cc <[email protected]> # 4.1.x
Reported-by Tim Wiess <[email protected]>
Signed-off-by Pablo Neira Ayuso <[email protected]>
--- net/netfilter/nf_conntrack_netlink.c | 5 ----- 1 file changed, 5 deletions(-)
net/netfilter/nf_conntrack_netlink.c +0 -5
@@ -2995,11 +2995,6 @@ ctnetlink_create_expect(struct net *net, u16 zone, } err =nf_ct_expect_related_report (exp, portid, report); -if (err <0 ) - goto err_exp; - -return 0 ; -err_exp:nf_ct_expect_put (exp); err_ct:nf_ct_put (ct);
Signature · 1 line
1.7.10.4