firewall-util-nft: clear previous address on replay
In case external entity wiped the ruleset, we need to clear the 'previous' address -- its already gone. This prevents the transaction from succeeding: the delete operation fails.
This commit is contained in:
@@ -1062,6 +1062,8 @@ again:
|
||||
int tmp = fw_nftables_recreate_table(ctx->nfnl, af, transaction, tsize);
|
||||
|
||||
if (tmp == 0) {
|
||||
/* table created anew; previous address already gone */
|
||||
previous_remote = NULL;
|
||||
retry = false;
|
||||
goto again;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user