netfilter: nft_ct: do cleanup work when NFTA_CT_DIRECTION is invalid
authorLiping Zhang <zlpnobody@gmail.com>
Wed, 15 Mar 2017 14:22:08 +0000 (22:22 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 15 Mar 2017 16:15:54 +0000 (17:15 +0100)
commit4494dbc6dec37817f2cc2aa7604039a9e87ada18
tree58c35e56d52fe2045a7ea014ea35ad0a9c101323
parent04166f48d9593af4513ae06c0f966c0cee300a20
netfilter: nft_ct: do cleanup work when NFTA_CT_DIRECTION is invalid

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>
Acked-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_ct.c