summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/utils/keymgr/functions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/keymgr/functions.c b/src/utils/keymgr/functions.c
index 43348162a..1f0a89f47 100644
--- a/src/utils/keymgr/functions.c
+++ b/src/utils/keymgr/functions.c
@@ -994,7 +994,7 @@ static int key_sort(const void *a, const void *b)
static bool key_missing(kdnssec_ctx_t *ctx, const knot_kasp_key_t *key)
{
- return DNSSEC_EOK !=
+ return !key->is_pub_only && DNSSEC_EOK !=
dnssec_keystore_get_private(ctx->keystore, key->id, key->key);
}