summaryrefslogtreecommitdiffstats
path: root/modules/ssl/mod_ssl_ct.c
diff options
context:
space:
mode:
authorChristophe Jaillet <jailletc36@apache.org>2021-12-24 14:49:35 +0100
committerChristophe Jaillet <jailletc36@apache.org>2021-12-24 14:49:35 +0100
commit442b4b167f19e13df918402a7af28fe4a50c2730 (patch)
tree4e8b6b350d9769dbad7868d21986d44725830653 /modules/ssl/mod_ssl_ct.c
parentAdd a change entry for r1896278 (diff)
downloadapache2-442b4b167f19e13df918402a7af28fe4a50c2730.tar.xz
apache2-442b4b167f19e13df918402a7af28fe4a50c2730.zip
Close a file handle in case of error in ct_static_scts()
PR 65760 <ryancaicse gmail.com> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1896361 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--modules/ssl/mod_ssl_ct.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/ssl/mod_ssl_ct.c b/modules/ssl/mod_ssl_ct.c
index 535ea4449e..e6fd91583a 100644
--- a/modules/ssl/mod_ssl_ct.c
+++ b/modules/ssl/mod_ssl_ct.c
@@ -2967,6 +2967,7 @@ static const char *ct_static_scts(cmd_parms *cmd, void *x, const char *cert_fn,
cert = PEM_read_X509(pemfile, NULL, NULL, NULL);
if (!cert) {
+ fclose(pemfile);
return apr_psprintf(p, "could not read certificate from file %s",
cert_fn);
}