Commit 78eab3c5 authored by Libor Peltan's avatar Libor Peltan Committed by Daniel Salzman
Browse files

keymgr: fixed segfault if set addtopolicy=...

parent c62305f7
......@@ -180,7 +180,7 @@ int keymgr_generate_key(kdnssec_ctx_t *ctx, int argc, char *argv[])
if (addtopolicy != NULL) {
char *last_policy_last = NULL;
knot_dname_t *unused;
knot_dname_t *unused = NULL;
ret = kasp_db_get_policy_last(*ctx->kasp_db, addtopolicy, &unused,
knot_dname_free(&unused, NULL);
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