mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 16:29:59 +00:00
netfilter: nft_dynset: allow dynamic updates of non-anonymous set
This check is superfluous since it breaks valid configurations, remove it. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
90d827f06b
commit
feb9f55c33
1 changed files with 0 additions and 2 deletions
|
@ -187,8 +187,6 @@ static int nft_dynset_init(const struct nft_ctx *ctx,
|
||||||
if (tb[NFTA_DYNSET_EXPR] != NULL) {
|
if (tb[NFTA_DYNSET_EXPR] != NULL) {
|
||||||
if (!(set->flags & NFT_SET_EVAL))
|
if (!(set->flags & NFT_SET_EVAL))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
if (!nft_set_is_anonymous(set))
|
|
||||||
return -EOPNOTSUPP;
|
|
||||||
|
|
||||||
priv->expr = nft_expr_init(ctx, tb[NFTA_DYNSET_EXPR]);
|
priv->expr = nft_expr_init(ctx, tb[NFTA_DYNSET_EXPR]);
|
||||||
if (IS_ERR(priv->expr))
|
if (IS_ERR(priv->expr))
|
||||||
|
|
Loading…
Reference in a new issue