mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
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:
committed by
Daan De Meyer
parent
374c29fc88
commit
58c6e75f26
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user