network/networkd-address: don't set up firewall rules here

Don't set up firewall rules when we're just initializing the firewall context
for NFT sets.

Fixes: #30257
This commit is contained in:
Topi Miettinen
2023-12-04 21:49:12 +02:00
committed by Daan De Meyer
parent 374c29fc88
commit 58c6e75f26

View File

@@ -645,7 +645,7 @@ static void address_modify_nft_set_context(Address *address, bool add, NFTSetCon
assert(nft_set_context);
if (!address->link->manager->fw_ctx) {
r = fw_ctx_new(&address->link->manager->fw_ctx);
r = fw_ctx_new_full(&address->link->manager->fw_ctx, /* init_tables= */ false);
if (r < 0)
return;
}