Skip to content
Snippets Groups Projects
Commit 91f81a55 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

key-events: remove dead code

parent d763c52d
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -106,8 +106,7 @@ static int share_or_generate_key(kdnssec_ctx_t *ctx, bool ksk, time_t when_activ
}
// if we already have the policy-last key, we have to generate new one
if (ret == KNOT_ENOENT ||
key_id_present(ctx, borrow_key, ksk ? DNSKEY_FLAGS_KSK : DNSKEY_FLAGS_ZSK)) {
if (ret == KNOT_ENOENT || key_id_present(ctx, borrow_key, DNSKEY_FLAGS_KSK)) {
knot_kasp_key_t *key = NULL;
ret = kdnssec_generate_key(ctx, ksk, &key);
if (ret != KNOT_EOK) {
......
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