mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
netfilter: ctnetlink: put back references to master ct and expect objects
commit95dd8653deupstream. We have to put back the references to the master conntrack and the expectation that we just created, otherwise we'll leak them. Fixes:0ef71ee1a5("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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
99fecec570
commit
5eb491ba5d
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user