From 63d1f81fb17dc9490bde13e95731fbd66a09b5e5 Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Thu, 21 Jan 2016 09:05:19 -0700 Subject: [PATCH] cast XMALLOC to byte pointer --- wolfcrypt/src/rsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/rsa.c b/wolfcrypt/src/rsa.c index c240a2eac..d5670c26d 100644 --- a/wolfcrypt/src/rsa.c +++ b/wolfcrypt/src/rsa.c @@ -594,7 +594,7 @@ static int wc_RsaUnPad_OAEP(byte *pkcsBlock, unsigned int pkcsBlockLen, return BAD_FUNC_ARG; } - tmp = XMALLOC(pkcsBlockLen, NULL, DYNAMIC_TYPE_TMP_BUFFER); + tmp = (byte*)XMALLOC(pkcsBlockLen, NULL, DYNAMIC_TYPE_TMP_BUFFER); if (tmp == NULL) { return MEMORY_E; }