From 83e7f4a1c7d76f8175d59a87daba7d38f2e2c21c Mon Sep 17 00:00:00 2001 From: Karel Miko Date: Mon, 25 Sep 2017 15:35:10 +0200 Subject: [PATCH] keep dh_key.x instead of free'ing it the approach before probably saves some bytes on the heap, but it's inconsistent in regards to what we normally do --- src/pk/dh/dh_import.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/pk/dh/dh_import.c b/src/pk/dh/dh_import.c index c86f2b5..579a6aa 100644 --- a/src/pk/dh/dh_import.c +++ b/src/pk/dh/dh_import.c @@ -69,8 +69,6 @@ int dh_import(const unsigned char *in, unsigned long inlen, dh_key *key) LTC_ASN1_EOL, 0UL, NULL)) != CRYPT_OK) { goto error; } - mp_clear(key->x); - key->x = NULL; } } else {