summaryrefslogtreecommitdiff
path: root/modules/ssl
diff options
context:
space:
mode:
authorChristophe Jaillet <jailletc36@apache.org>2022-01-07 17:30:48 +0000
committerChristophe Jaillet <jailletc36@apache.org>2022-01-07 17:30:48 +0000
commit78d9aee916aac409987ccd8202068382be1bdfe7 (patch)
tree24594bba461a7c58f404defc713e0d670b2c1ec2 /modules/ssl
parenta8fbcf0a408d0e51e4e474415ef8d9095e7e79ed (diff)
downloadhttpd-78d9aee916aac409987ccd8202068382be1bdfe7.tar.gz
Follow-up to r1896361.
Use a cleaner solution. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1896817 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/ssl')
-rw-r--r--modules/ssl/mod_ssl_ct.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/ssl/mod_ssl_ct.c b/modules/ssl/mod_ssl_ct.c
index e6fd91583a..f583da5f18 100644
--- a/modules/ssl/mod_ssl_ct.c
+++ b/modules/ssl/mod_ssl_ct.c
@@ -2966,14 +2966,13 @@ static const char *ct_static_scts(cmd_parms *cmd, void *x, const char *cert_fn,
}
cert = PEM_read_X509(pemfile, NULL, NULL, NULL);
+ fclose(pemfile);
+
if (!cert) {
- fclose(pemfile);
return apr_psprintf(p, "could not read certificate from file %s",
cert_fn);
}
- fclose(pemfile);
-
fingerprint = get_cert_fingerprint(p, cert);
X509_free(cert);