projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b2f321
)
netfilter: nf_tables: really skip inactive sets when allocating name
author
Pablo Neira Ayuso
<pablo@netfilter.org>
Tue, 9 Aug 2022 15:23:53 +0000
(17:23 +0200)
committer
Pablo Neira Ayuso
<pablo@netfilter.org>
Thu, 11 Aug 2022 16:53:48 +0000
(18:53 +0200)
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>
net/netfilter/nf_tables_api.c
patch
|
blob
|
history
diff --git
a/net/netfilter/nf_tables_api.c
b/net/netfilter/nf_tables_api.c
index d90434eadc1b1f3f750a651d46e9230103c76dec..1b9459a364ba7438f8c4333b97488d4733a66c25 100644
(file)
--- 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;