]> granicus.if.org Git - apache/commitdiff
mod_ssl: follow up to 2.4.x's r1666363.
authorYann Ylavic <ylavic@apache.org>
Thu, 5 Jul 2018 19:24:07 +0000 (19:24 +0000)
committerYann Ylavic <ylavic@apache.org>
Thu, 5 Jul 2018 19:24:07 +0000 (19:24 +0000)
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

modules/ssl/ssl_engine_init.c

index 4f4daab052a9d95e374c3cdb85222f6780d033b5..397712b6017658f93387d3036585f73ba17616f0 100644 (file)
@@ -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