Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4494dbc6 authored by Liping Zhang's avatar Liping Zhang Committed by Pablo Neira Ayuso
Browse files

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: edee4f1e ("netfilter: nft_ct: add zone id set support")
Signed-off-by: default avatarLiping Zhang <zlpnobody@gmail.com>
Acked-by: default avatarFlorian Westphal <fw@strlen.de>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent 04166f48
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
		}
	}