From: Bernd Edlinger Date: Sun, 17 Mar 2019 08:48:15 +0000 (+0100) Subject: Clear the secret point in ecdh_simple_compute_key X-Git-Tag: openssl-3.0.0-alpha1~2345 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1ff2c992c24c330c0d40708b4169b862563d6aab;p=oweals%2Fopenssl.git Clear the secret point in ecdh_simple_compute_key Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/8501) --- diff --git a/crypto/ec/ecdh_ossl.c b/crypto/ec/ecdh_ossl.c index 40a564fb14..b63cab9d91 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);