From: Michael Tremer Date: Tue, 19 May 2026 16:22:34 +0000 (+0000) Subject: main: Unconditionally dump the zone X-Git-Tag: 0.0.1 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=84cb7d4adfc1dee60153235aef57c59d2e2990a6;p=zone-sync.git main: Unconditionally dump the zone dns_zone_flush() does not always write the zone data. Since we call it at point where we have definitely received some data (i.e. the zone has changed), we can just force to dump it. Signed-off-by: Michael Tremer --- diff --git a/main.c b/main.c index c391796..02a4db2 100644 --- a/main.c +++ b/main.c @@ -289,7 +289,7 @@ static void transfer_done(dns_zone_t* zone, uint32_t* expireopt, isc_result_t re INFO("%s: Transfer successful\n", name); // Commit any changes - r = dns_zone_flush(zone); + r = dns_zone_dump(zone); if (r) { ERROR("%s: Failed to flush zone\n", name); ctx.rc = 1;