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)
This commit is contained in:
Bernd Edlinger 2019-03-17 09:48:15 +01:00
parent 5743d1268d
commit 1ff2c992c2

View file

@ -112,7 +112,7 @@ int ecdh_simple_compute_key(unsigned char **pout, size_t *poutlen,
ret = 1; ret = 1;
err: err:
EC_POINT_free(tmp); EC_POINT_clear_free(tmp);
if (ctx) if (ctx)
BN_CTX_end(ctx); BN_CTX_end(ctx);
BN_CTX_free(ctx); BN_CTX_free(ctx);