From: Jan Kaluža Date: Tue, 15 Dec 2015 11:50:48 +0000 (+0000) Subject: * mod_ssl: Free dhparams when getting DH params. This fixes issue when X-Git-Tag: 2.5.0-alpha~2530 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=51da86c0bea9c9fb5c4b73c580f1c6905d121a9c;p=thirdparty%2Fapache%2Fhttpd.git * mod_ssl: Free dhparams when getting DH params. This fixes issue when SSLCryptoDevice does not get unregistered because of non-zero refcount during the mod_ssl unload happening on httpd startup. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1720129 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/ssl/ssl_engine_init.c b/modules/ssl/ssl_engine_init.c index 8dda133d7ca..18b2d1a1d86 100644 --- a/modules/ssl/ssl_engine_init.c +++ b/modules/ssl/ssl_engine_init.c @@ -1215,6 +1215,7 @@ static apr_status_t ssl_init_server_certs(server_rec *s, ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s, APLOGNO(02540) "Custom DH parameters (%d bits) for %s loaded from %s", BN_num_bits(dhparams->p), vhost_id, certfile); + DH_free(dhparams); } #ifdef HAVE_ECC