diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2022-08-09 17:23:53 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2022-08-11 18:53:48 +0200 |
commit | 271c5ca826e0c3c53e0eb4032f8eaedea1ee391c (patch) | |
tree | a7147cb95cc7ae4519b3a7d3d8caaf9420204bca /net/netfilter/nf_tables_api.c | |
parent | 0b2f3212b551a87fe936701fa0813032861a3308 (diff) | |
download | linux-271c5ca826e0c3c53e0eb4032f8eaedea1ee391c.tar.gz |
netfilter: nf_tables: really skip inactive sets when allocating name
While looping to build the bitmap of used anonymous set names, check the
current set in the iteration, instead of the one that is being created.
Fixes: 37a9cc525525 ("netfilter: nf_tables: add generation mask to sets")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nf_tables_api.c')
-rw-r--r-- | net/netfilter/nf_tables_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c index d90434eadc1b1..1b9459a364ba7 100644 --- a/net/netfilter/nf_tables_api.c +++ b/net/netfilter/nf_tables_api.c @@ -3907,7 +3907,7 @@ cont: list_for_each_entry(i, &ctx->table->sets, list) { int tmp; - if (!nft_is_active_next(ctx->net, set)) + if (!nft_is_active_next(ctx->net, i)) continue; if (!sscanf(i->name, name, &tmp)) continue; |