Always execute wc_InitRsaKey if we are always going to execute wc_FreeRsaKey

This commit is contained in:
kaleb-himes
2016-02-24 14:42:07 -07:00
parent 35b48250ad
commit 4858a65984

View File

@ -3590,7 +3590,8 @@ static int ConfirmSignature(const byte* buf, word32 bufSz,
if (sigSz > MAX_ENCODED_SIG_SZ) {
WOLFSSL_MSG("Verify Signature is too big");
}
else if (wc_InitRsaKey(pubKey, heap) != 0) {
if (wc_InitRsaKey(pubKey, heap) != 0) {
WOLFSSL_MSG("InitRsaKey failed");
}
else if (wc_RsaPublicKeyDecode(key, &idx, pubKey, keySz) < 0) {