Commit 41f719b3 authored by Jan Včelák's avatar Jan Včelák 🚀

dnssec: fix double-free when PKCS 11 module initialization fails

parent 4a5d1575
......@@ -115,6 +115,7 @@ static int backend_exec(dnssec_kasp_t *kasp, const char *name, const char *confi
r = callback(keystore, patched_config ? patched_config : config);
if (r != DNSSEC_EOK) {
dnssec_keystore_deinit(keystore);
return r;
}
*keystore_ptr = keystore;
......
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