Commit 1f31ff08 authored by Daniel Salzman's avatar Daniel Salzman

ctl: don't plan dnssec event if ksk-submitted failed

parent 5da2d948
......@@ -347,6 +347,8 @@ static int zone_sign(zone_t *zone, ctl_args_t *args)
static int zone_ksk_sbm_confirm(zone_t *zone, ctl_args_t *args)
{
UNUSED(args);
kdnssec_ctx_t ctx = { 0 };
int ret = kdnssec_ctx_init(conf(), &ctx, zone->name, NULL);
......@@ -355,11 +357,11 @@ static int zone_ksk_sbm_confirm(zone_t *zone, ctl_args_t *args)
}
ret = knot_dnssec_ksk_sbm_confirm(&ctx);
kdnssec_ctx_deinit(&ctx);
zone_events_schedule_now(zone, ZONE_EVENT_DNSSEC);
// NOT zone_events_schedule_user(), intentionally
if (ret == KNOT_EOK) {
// NOT zone_events_schedule_user(), intentionally!
zone_events_schedule_now(zone, ZONE_EVENT_DNSSEC);
}
return ret;
}
......
......@@ -1106,7 +1106,7 @@ static const cmd_help_t cmd_help_table[] = {
{ CMD_ZONE_RETRANSFER, "[<zone>...]", "Force slave zone retransfer (no serial check)." },
{ CMD_ZONE_FLUSH, "[<zone>...] [<filter>...]", "Flush zone journal into the zone file." },
{ CMD_ZONE_SIGN, "[<zone>...]", "Re-sign the automatically signed zone." },
{ CMD_ZONE_KSK_SBM, "<zone>", "When KSK submission, confirm parent's DS presence manually." },
{ CMD_ZONE_KSK_SBM, "<zone>", "\b\b\bWhen KSK submission, confirm parent's DS presence manually." },
{ CMD_ZONE_FREEZE, "[<zone>...]", "Temporarily postpone automatic zone-changing events." },
{ CMD_ZONE_THAW, "[<zone>...]", "Dismiss zone freeze." },
{ "", "", "" },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment