From: Yann Ylavic Date: Thu, 5 Jul 2018 19:24:07 +0000 (+0000) Subject: mod_ssl: follow up to 2.4.x's r1666363. X-Git-Tag: 2.4.34~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fdb1526d60a3570ee601c9b9ba4718685d7abf95;p=apache mod_ssl: follow up to 2.4.x's r1666363. Add missing bits from previous backport of r1666363. Reviewed by: jailletc36, ylavic, rpluem git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1835173 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/ssl/ssl_engine_init.c b/modules/ssl/ssl_engine_init.c index 4f4daab052..397712b601 100644 --- a/modules/ssl/ssl_engine_init.c +++ b/modules/ssl/ssl_engine_init.c @@ -1344,8 +1344,8 @@ static apr_status_t ssl_init_server_certs(server_rec *s, #if defined(SSL_CTX_set_ecdh_auto) SSL_CTX_set_ecdh_auto(mctx->ssl_ctx, 1); #else - SSL_CTX_set_tmp_ecdh(mctx->ssl_ctx, - EC_KEY_new_by_curve_name(NID_X9_62_prime256v1)); + eckey = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1); + SSL_CTX_set_tmp_ecdh(mctx->ssl_ctx, eckey); #endif } #endif