mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
netfilter: nf_tables: really skip inactive sets when allocating name
commit271c5ca826upstream. 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:37a9cc5255("netfilter: nf_tables: add generation mask to sets") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
b59bee8b05
commit
8a6775ede6
@@ -3810,7 +3810,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;
|
||||
|
||||
Reference in New Issue
Block a user