We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f057677 commit 5df053aCopy full SHA for 5df053a
src/modules/rlm_crl/rlm_crl.c
@@ -846,14 +846,16 @@ static int mod_instantiate(module_inst_ctx_t const *mctx)
846
847
if (!inst->ca_file && !inst->ca_path) {
848
cf_log_err(mctx->mi->conf, "Missing ca_file / ca_path option. One or other (or both) must be specified.");
849
+ fail:
850
+ talloc_free(inst->mutable);
851
return -1;
852
}
853
854
inst->verify_store = X509_STORE_new();
855
if (!X509_STORE_load_locations(inst->verify_store, inst->ca_file, inst->ca_path)) {
856
cf_log_err(mctx->mi->conf, "Failed reading Trusted root CA file \"%s\" and path \"%s\"",
857
inst->ca_file, inst->ca_path);
- return -1;
858
+ goto fail;
859
860
861
X509_STORE_set_purpose(inst->verify_store, X509_PURPOSE_SSL_CLIENT);
0 commit comments