Skip to content
Snippets Groups Projects
Commit 98f597ee authored by Libor Peltan's avatar Libor Peltan Committed by Daniel Salzman
Browse files

keymgr: proper error handling within del-all-old

parent ae02aacc
No related branches found
No related tags found
1 merge request!1285Keymgr list zones
......@@ -185,7 +185,9 @@ int keymgr_del_all_old(kdnssec_ctx_t *ctx)
knot_kasp_key_t *key = &ctx->zone->keys[i];
if (knot_time_cmp(key->timing.remove, ctx->now) < 0) {
int ret = kdnssec_delete_key(ctx, key);
printf("- %s\n", knot_strerror(ret));
if (ret != KNOT_EOK) {
return ret;
}
}
}
return kdnssec_ctx_commit(ctx);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment