* [PATCH nf] netfilter: nft_ct: do cleanup work when NFTA_CT_DIRECTION is invalid
@ 2017-03-15 14:22 Liping Zhang
2017-03-15 14:52 ` Florian Westphal
0 siblings, 1 reply; 3+ messages in thread
From: Liping Zhang @ 2017-03-15 14:22 UTC (permalink / raw)
To: pablo; +Cc: netfilter-devel, fw, Liping Zhang
From: Liping Zhang <zlpnobody@gmail.com>
We should jump to invoke __nft_ct_set_destroy() instead of just
return error.
Fixes: edee4f1e9245 ("netfilter: nft_ct: add zone id set support")
Signed-off-by: Liping Zhang <zlpnobody@gmail.com>
---
net/netfilter/nft_ct.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/net/netfilter/nft_ct.c b/net/netfilter/nft_ct.c
index 91585b5..0264258 100644
--- a/net/netfilter/nft_ct.c
+++ b/net/netfilter/nft_ct.c
@@ -544,7 +544,8 @@ static int nft_ct_set_init(const struct nft_ctx *ctx,
case IP_CT_DIR_REPLY:
break;
default:
- return -EINVAL;
+ err = -EINVAL;
+ goto err1;
}
}
--
2.5.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH nf] netfilter: nft_ct: do cleanup work when NFTA_CT_DIRECTION is invalid
2017-03-15 14:22 [PATCH nf] netfilter: nft_ct: do cleanup work when NFTA_CT_DIRECTION is invalid Liping Zhang
@ 2017-03-15 14:52 ` Florian Westphal
2017-03-15 16:15 ` Pablo Neira Ayuso
0 siblings, 1 reply; 3+ messages in thread
From: Florian Westphal @ 2017-03-15 14:52 UTC (permalink / raw)
To: Liping Zhang; +Cc: pablo, netfilter-devel, fw, Liping Zhang
Liping Zhang <zlpnobody@163.com> wrote:
> From: Liping Zhang <zlpnobody@gmail.com>
>
> We should jump to invoke __nft_ct_set_destroy() instead of just
> return error.
>
> Fixes: edee4f1e9245 ("netfilter: nft_ct: add zone id set support")
> Signed-off-by: Liping Zhang <zlpnobody@gmail.com>
Indeed, good catch, thanks!
Acked-by: Florian Westphal <fw@strlen.de>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH nf] netfilter: nft_ct: do cleanup work when NFTA_CT_DIRECTION is invalid
2017-03-15 14:52 ` Florian Westphal
@ 2017-03-15 16:15 ` Pablo Neira Ayuso
0 siblings, 0 replies; 3+ messages in thread
From: Pablo Neira Ayuso @ 2017-03-15 16:15 UTC (permalink / raw)
To: Florian Westphal; +Cc: Liping Zhang, netfilter-devel, Liping Zhang
On Wed, Mar 15, 2017 at 03:52:31PM +0100, Florian Westphal wrote:
> Liping Zhang <zlpnobody@163.com> wrote:
> > From: Liping Zhang <zlpnobody@gmail.com>
> >
> > We should jump to invoke __nft_ct_set_destroy() instead of just
> > return error.
> >
> > Fixes: edee4f1e9245 ("netfilter: nft_ct: add zone id set support")
> > Signed-off-by: Liping Zhang <zlpnobody@gmail.com>
>
> Indeed, good catch, thanks!
>
> Acked-by: Florian Westphal <fw@strlen.de>
Applied, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-03-15 16:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-15 14:22 [PATCH nf] netfilter: nft_ct: do cleanup work when NFTA_CT_DIRECTION is invalid Liping Zhang
2017-03-15 14:52 ` Florian Westphal
2017-03-15 16:15 ` Pablo Neira Ayuso
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.