]> git.ipfire.org Git - zone-sync.git/commitdiff
main: Cleanup the zone if we could not load it
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 18 May 2026 15:55:50 +0000 (15:55 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 18 May 2026 15:55:50 +0000 (15:55 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
main.c

diff --git a/main.c b/main.c
index 41541f1ba0ea55b0d31928e0d7dc45d832f0b58d..95c0755225baed2981d1642efcc649ed6096ebe1 100644 (file)
--- a/main.c
+++ b/main.c
@@ -392,7 +392,7 @@ static void do_zone(const char* name) {
 
                default:
                        ERROR("Failed to load zone: %s\n", isc_result_totext(r));
-                       break;
+                       goto ERROR;
        }
 
        // Done