提交 95dd8653 编写于 作者: P Pablo Neira Ayuso

netfilter: ctnetlink: put back references to master ct and expect objects

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

Fixes: 0ef71ee1 ("netfilter: ctnetlink: refactor ctnetlink_create_expect")
Reported-by: NTim Wiess <Tim.Wiess@watchguard.com>
Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
上级 a7d35f9d
...@@ -2995,11 +2995,6 @@ ctnetlink_create_expect(struct net *net, u16 zone, ...@@ -2995,11 +2995,6 @@ ctnetlink_create_expect(struct net *net, u16 zone,
} }
err = nf_ct_expect_related_report(exp, portid, report); err = nf_ct_expect_related_report(exp, portid, report);
if (err < 0)
goto err_exp;
return 0;
err_exp:
nf_ct_expect_put(exp); nf_ct_expect_put(exp);
err_ct: err_ct:
nf_ct_put(ct); nf_ct_put(ct);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册