Skip to content

Commit 4a0e7f2

Browse files
committed
netfilter: nf_tables: do not compare internal table flags on updates
Restore skipping transaction if table update does not modify flags. Fixes: 179d9ba ("netfilter: nf_tables: fix table flag updates") Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent b0e256f commit 4a0e7f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/netfilter/nf_tables_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1213,7 +1213,7 @@ static int nf_tables_updtable(struct nft_ctx *ctx)
12131213
if (flags & ~NFT_TABLE_F_MASK)
12141214
return -EOPNOTSUPP;
12151215

1216-
if (flags == ctx->table->flags)
1216+
if (flags == (ctx->table->flags & NFT_TABLE_F_MASK))
12171217
return 0;
12181218

12191219
if ((nft_table_has_owner(ctx->table) &&

0 commit comments

Comments
 (0)