Message ID | 20231012085724.15155-7-fw@strlen.de (mailing list archive) |
---|---|
State | Accepted |
Commit | 505ce0630ad5d31185695f8a29dde8d29f28faa7 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net,1/7] netfilter: nf_tables: do not remove elements if set backend implements .abort | expand |
diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c index aae6ffebb413..a623d31b6518 100644 --- a/net/netfilter/nf_tables_api.c +++ b/net/netfilter/nf_tables_api.c @@ -3166,7 +3166,7 @@ int nft_expr_inner_parse(const struct nft_ctx *ctx, const struct nlattr *nla, if (err < 0) return err; - if (!tb[NFTA_EXPR_DATA]) + if (!tb[NFTA_EXPR_DATA] || !tb[NFTA_EXPR_NAME]) return -EINVAL; type = __nft_expr_type_get(ctx->family, tb[NFTA_EXPR_NAME]);