You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ja...@apache.org on 2022/01/07 17:30:48 UTC
svn commit: r1896817 - /httpd/httpd/trunk/modules/ssl/mod_ssl_ct.c
Author: jailletc36
Date: Fri Jan 7 17:30:48 2022
New Revision: 1896817
URL: http://svn.apache.org/viewvc?rev=1896817&view=rev
Log:
Follow-up to r1896361.
Use a cleaner solution.
Modified:
httpd/httpd/trunk/modules/ssl/mod_ssl_ct.c
Modified: httpd/httpd/trunk/modules/ssl/mod_ssl_ct.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/ssl/mod_ssl_ct.c?rev=1896817&r1=1896816&r2=1896817&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/ssl/mod_ssl_ct.c (original)
+++ httpd/httpd/trunk/modules/ssl/mod_ssl_ct.c Fri Jan 7 17:30:48 2022
@@ -2966,14 +2966,13 @@ static const char *ct_static_scts(cmd_pa
}
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);