summaryrefslogtreecommitdiff
path: root/modules/ssl
diff options
context:
space:
mode:
authorChristophe Jaillet <jailletc36@apache.org>2021-12-24 13:49:35 +0000
committerChristophe Jaillet <jailletc36@apache.org>2021-12-24 13:49:35 +0000
commit442b4b167f19e13df918402a7af28fe4a50c2730 (patch)
tree4e8b6b350d9769dbad7868d21986d44725830653 /modules/ssl
parentf7067a93854259e1d83562a8ac35373824eabd01 (diff)
downloadhttpd-442b4b167f19e13df918402a7af28fe4a50c2730.tar.gz
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 'modules/ssl')
-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);
}