r = dns_zone_flush(zone);
if (r) {
ERROR("%s: Failed to flush zone\n", name);
+ ctx.rc = 1;
}
break;
default:
ERROR("%s: Zone transfer failed\n", name);
+ ctx.rc = 1;
break;
}
default:
ERROR("Failed to initialize zone transfer: %s\n", isc_result_totext(r));
+ ctx.rc = 1;
goto ERROR;
}
r = dns_zonemgr_managezone(ctx.zonemgr, zone);
if (r) {
ERROR("Failed to add the zone to the zone manager: %s\n", isc_result_totext(r));
+ ctx.rc = 1;
goto ERROR;
}
r = dns_zone_setorigin(zone, origin);
if (r) {
ERROR("Failed to set the zone's origin\n");
+ ctx.rc = 1;
goto ERROR;
}
r = dns_zone_setfile(zone, path, dns_masterformat_text, &dns_master_style_default);
if (r) {
ERROR("Failed to set the zone's filename %s: %m\n", path);
+ ctx.rc = 1;
goto ERROR;
}
r = dns_zone_setjournal(zone, journal_path);
if (r) {
ERROR("Failed to set the zone's journal path: %s\n", isc_result_totext(r));
+ ctx.rc = 1;
goto ERROR;
}
default:
ERROR("Failed to load zone: %s\n", isc_result_totext(r));
+ ctx.rc = 1;
goto ERROR;
}