Blame SOURCES/httpd-2.4.6-dhparams-free.patch
|
|
008793 |
diff --git a/modules/ssl/ssl_engine_init.c b/modules/ssl/ssl_engine_init.c
|
|
|
008793 |
index ee46db4..c560422 100644
|
|
|
008793 |
--- a/modules/ssl/ssl_engine_init.c
|
|
|
008793 |
+++ b/modules/ssl/ssl_engine_init.c
|
|
|
008793 |
@@ -915,7 +915,7 @@ static void ssl_init_server_certs(server_rec *s,
|
|
|
008793 |
const char *rsa_id, *dsa_id;
|
|
|
008793 |
#ifndef OPENSSL_NO_EC
|
|
|
008793 |
const char *ecc_id;
|
|
|
008793 |
- EC_GROUP *ecparams;
|
|
|
008793 |
+ EC_GROUP *ecparams = NULL;
|
|
|
008793 |
int nid;
|
|
|
008793 |
EC_KEY *eckey = NULL;
|
|
|
008793 |
#endif
|
|
|
008793 |
@@ -988,6 +988,7 @@ static void ssl_init_server_certs(server_rec *s,
|
|
|
008793 |
"Custom DH parameters (%d bits) for %s loaded from %s",
|
|
|
008793 |
BN_num_bits(dhparams->p), vhost_id,
|
|
|
008793 |
mctx->pks->cert_files[0]);
|
|
|
008793 |
+ DH_free(dhparams);
|
|
|
008793 |
}
|
|
|
008793 |
|
|
|
008793 |
#ifndef OPENSSL_NO_EC
|
|
|
008793 |
@@ -1012,6 +1013,9 @@ static void ssl_init_server_certs(server_rec *s,
|
|
|
008793 |
SSL_CTX_set_tmp_ecdh(mctx->ssl_ctx, eckey);
|
|
|
008793 |
#endif
|
|
|
008793 |
}
|
|
|
008793 |
+ if (ecparams) {
|
|
|
008793 |
+ EC_GROUP_free(ecparams);
|
|
|
008793 |
+ }
|
|
|
008793 |
EC_KEY_free(eckey);
|
|
|
008793 |
#endif
|
|
|
008793 |
}
|