summaryrefslogtreecommitdiff
path: root/cipher/ecc.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2019-10-22 15:53:46 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2019-10-22 15:53:46 +0900
commit82441bbb82903c21cd2b9b4e2d50202b14fdc24c (patch)
treef6ccbace126d9d6453d255083a03e0e6738bf58d /cipher/ecc.c
parent6d93812aa312a92d4de2dc034bdf87c276a24b8a (diff)
downloadlibgcrypt-82441bbb82903c21cd2b9b4e2d50202b14fdc24c.tar.gz
ecc: Fix key generation for ECDH.
* cipher/ecc.c (test_ecdh_only_keys): Don't free EC here. Fixes-commit: 488704be6e044e23770d95344511c5a347b533c5 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'cipher/ecc.c')
-rw-r--r--cipher/ecc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/cipher/ecc.c b/cipher/ecc.c
index a72f28c7..d0707f99 100644
--- a/cipher/ecc.c
+++ b/cipher/ecc.c
@@ -356,7 +356,6 @@ test_ecdh_only_keys (mpi_ec_t ec, unsigned int nbits, int flags)
mpi_free (x0);
mpi_free (x1);
- _gcry_mpi_ec_free (ec);
point_free (&R_);
mpi_free (test);