X-Git-Url: https://git.distorted.org.uk/~mdw/tripe/blobdiff_plain/4998da611d93532c3c35ca879689fb5d9b21e0b7..fddd7fb7f11a3f4399e90ee52f874f65718eb348:/server/keymgmt.c?ds=sidebyside diff --git a/server/keymgmt.c b/server/keymgmt.c index e31e45da..837bc6ef 100644 --- a/server/keymgmt.c +++ b/server/keymgmt.c @@ -178,7 +178,7 @@ static const kgops *kgtab[] = { static int algs_get(algswitch *a, dstr *e, key_file *kf, key *k) { const char *p; - const bulkcrypto *bulk; + const bulkops *bulk; char *q, *qq; dstr d = DSTR_INIT, dd = DSTR_INIT; int rc = -1; @@ -598,7 +598,7 @@ foundko: kd = CREATE(kdata); if (kh->load(*ko, *d, kd, &t, &e)) { a_warn("KEYMGMT", "%s-keyring", kh->kind, - "%s", kh->kr, "key" "%s", t.buf, + "%s", kh->kr, "key", "%s", t.buf, "*%s", e.buf, A_END); goto fail_1; } @@ -883,6 +883,7 @@ void km_unref(kdata *kd) G_DESTROY(kd->g, kd->kpub); xfree(kd->tag); G_DESTROYGROUP(kd->g); + DESTROY(kd); } /*----- That's all, folks -------------------------------------------------*/