From 27a9080ac3f8d86b32cdfe324b4ea0c5ac159e99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kin=C4=8Dl?= Date: Thu, 16 May 2019 16:58:41 +0200 Subject: [PATCH] Removed dead code from _DhSetKey. --- wolfcrypt/src/dh.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/wolfcrypt/src/dh.c b/wolfcrypt/src/dh.c index fa5f26764..ed2c1548b 100644 --- a/wolfcrypt/src/dh.c +++ b/wolfcrypt/src/dh.c @@ -2057,8 +2057,6 @@ static int _DhSetKey(DhKey* key, const byte* p, word32 pSz, const byte* g, } if (ret != 0 && key != NULL) { - if (keyQ) - mp_clear(keyQ); if (keyG) mp_clear(keyG); if (keyP)