]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
tls: Fix missing X509_STORE_free() (#4119)
authorJorge Pereira <jpereira@users.noreply.github.com>
Thu, 17 Jun 2021 14:57:32 +0000 (11:57 -0300)
committerGitHub <noreply@github.com>
Thu, 17 Jun 2021 14:57:32 +0000 (09:57 -0500)
src/main/tls.c

index e0128c9fcb8ebff35de9ed9ef774d2b250bc4f9e..017d308b438403348eaad0888cc37c782e9174f0 100644 (file)
@@ -3263,6 +3263,7 @@ X509_STORE *fr_init_x509_store(fr_tls_server_conf_t *conf)
        if (conf->ca_file || conf->ca_path)
                if (!X509_STORE_load_locations(store, conf->ca_file, conf->ca_path)) {
                        tls_error_log(NULL, "Error reading Trusted root CA list \"%s\"", conf->ca_file);
+                       X509_STORE_free(store);
                        return NULL;
                }