mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
remove duplicate (deadcode) for clearing mp_int's
This commit is contained in:
@ -2177,11 +2177,6 @@ int wc_DhImportKeyPair(DhKey* key, const byte* priv, word32 privSz,
|
|||||||
WOLFSSL_MSG("DH Public Key Set");
|
WOLFSSL_MSG("DH Public Key Set");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* Free Memory if error occurred */
|
|
||||||
if (havePriv == 0 && keyPriv != NULL)
|
|
||||||
mp_clear(keyPriv);
|
|
||||||
if (havePub == 0 && keyPub != NULL)
|
|
||||||
mp_clear(keyPub);
|
|
||||||
|
|
||||||
if (havePriv == 0 && havePub == 0) {
|
if (havePriv == 0 && havePub == 0) {
|
||||||
return MEMORY_E;
|
return MEMORY_E;
|
||||||
|
Reference in New Issue
Block a user