]> granicus.if.org Git - apache/commitdiff
* mod_ssl: Free dhparams when getting DH params. This fixes issue when
authorJan Kaluža <jkaluza@apache.org>
Tue, 15 Dec 2015 11:50:48 +0000 (11:50 +0000)
committerJan Kaluža <jkaluza@apache.org>
Tue, 15 Dec 2015 11:50:48 +0000 (11:50 +0000)
  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

modules/ssl/ssl_engine_init.c

index 8dda133d7ca3b3d288fcc792d5da68b561e9469a..18b2d1a1d8668ab6c7d7296f05fcfc3d888a7e48 100644 (file)
@@ -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