The branch OpenSSL_1_1_1-stable has been updated
       via  18c1f9997aa57756015e9790a987cc3a27901c72 (commit)
      from  5dcfd6c50a216f81bf43e1f21bc5f3fc517ba47a (commit)


- Log -----------------------------------------------------------------
commit 18c1f9997aa57756015e9790a987cc3a27901c72
Author: Bernd Edlinger <bernd.edlin...@hotmail.de>
Date:   Sun Mar 17 09:48:15 2019 +0100

    Clear the secret point in ecdh_simple_compute_key
    
    Reviewed-by: Paul Dale <paul.d...@oracle.com>
    (Merged from https://github.com/openssl/openssl/pull/8501)
    
    (cherry picked from commit 1ff2c992c24c330c0d40708b4169b862563d6aab)

-----------------------------------------------------------------------

Summary of changes:
 crypto/ec/ecdh_ossl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crypto/ec/ecdh_ossl.c b/crypto/ec/ecdh_ossl.c
index bd93793..254a1dc 100644
--- a/crypto/ec/ecdh_ossl.c
+++ b/crypto/ec/ecdh_ossl.c
@@ -112,7 +112,7 @@ int ecdh_simple_compute_key(unsigned char **pout, size_t 
*poutlen,
     ret = 1;
 
  err:
-    EC_POINT_free(tmp);
+    EC_POINT_clear_free(tmp);
     if (ctx)
         BN_CTX_end(ctx);
     BN_CTX_free(ctx);

Reply via email to