diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-08-15 09:37:23 -0400 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-08-16 13:37:11 -0400 |
commit | feb9f55c33e5114127238a2c87c069b4f30d1f23 (patch) | |
tree | 94dd2e60a04b91ca85b1d76422c43be318912400 | |
parent | 90d827f06bebbd9aded00c152e6c9eb2db4db1a3 (diff) |
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>
-rw-r--r-- | net/netfilter/nft_dynset.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/netfilter/nft_dynset.c b/net/netfilter/nft_dynset.c index 81184c244d1a..6e91a37d57f2 100644 --- a/net/netfilter/nft_dynset.c +++ b/net/netfilter/nft_dynset.c | |||
@@ -187,8 +187,6 @@ static int nft_dynset_init(const struct nft_ctx *ctx, | |||
187 | if (tb[NFTA_DYNSET_EXPR] != NULL) { | 187 | if (tb[NFTA_DYNSET_EXPR] != NULL) { |
188 | if (!(set->flags & NFT_SET_EVAL)) | 188 | if (!(set->flags & NFT_SET_EVAL)) |
189 | return -EINVAL; | 189 | return -EINVAL; |
190 | if (!nft_set_is_anonymous(set)) | ||
191 | return -EOPNOTSUPP; | ||
192 | 190 | ||
193 | priv->expr = nft_expr_init(ctx, tb[NFTA_DYNSET_EXPR]); | 191 | priv->expr = nft_expr_init(ctx, tb[NFTA_DYNSET_EXPR]); |
194 | if (IS_ERR(priv->expr)) | 192 | if (IS_ERR(priv->expr)) |