diff --git a/wolfcrypt/src/rsa.c b/wolfcrypt/src/rsa.c index 7866d9ed4..734d47486 100644 --- a/wolfcrypt/src/rsa.c +++ b/wolfcrypt/src/rsa.c @@ -3278,6 +3278,7 @@ static int RsaPrivateDecryptEx(const byte* in, word32 inLen, byte* out, XMEMCPY(key->data, in, inLen); } else { + key->dataIsAlloc = 0; key->data = out; } #endif