summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2019-03-17 09:48:15 +0100
committerBernd Edlinger <bernd.edlinger@hotmail.de>2019-03-18 22:31:31 +0100
commitc5bc42d7a131cf7a6a2ebd97a7a4a559d01af0f9 (patch)
tree97bafed9661b48fcc5ed3d4742252ed8fab70ce3
parent7ebbb293e1d68c014e50dc49944aba0b72f35074 (diff)
Clear the secret point in ecdh_simple_compute_key
Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/8501) (cherry picked from commit 1ff2c992c24c330c0d40708b4169b862563d6aab)
-rw-r--r--crypto/ec/ecdh_ossl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ec/ecdh_ossl.c b/crypto/ec/ecdh_ossl.c
index a865145974..2d620cbc3e 100644
--- a/crypto/ec/ecdh_ossl.c
+++ b/crypto/ec/ecdh_ossl.c
@@ -138,7 +138,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);