]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Clear the secret point in ecdh_compute_key
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Sun, 17 Mar 2019 09:02:07 +0000 (10:02 +0100)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Sun, 17 Mar 2019 09:02:07 +0000 (10:02 +0100)
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/8502)

crypto/ecdh/ech_ossl.c

index d3b05247fe37d068d259702d09a422646fd2764f..8b69ce5ba4dc2ab42c9430e7e08b3669f21262a8 100644 (file)
@@ -207,7 +207,7 @@ static int ecdh_compute_key(void *out, size_t outlen, const EC_POINT *pub_key,
 
  err:
     if (tmp)
-        EC_POINT_free(tmp);
+        EC_POINT_clear_free(tmp);
     if (ctx)
         BN_CTX_end(ctx);
     if (ctx)