From d1068d25d1bdd1bd4e27dc7efdcb65dee877e899 Mon Sep 17 00:00:00 2001 From: John Safranek Date: Tue, 18 Sep 2012 12:05:16 -0700 Subject: [PATCH] fixed another compile warning --- src/internal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal.c b/src/internal.c index 88ff59d24..f3ccc42d7 100644 --- a/src/internal.c +++ b/src/internal.c @@ -2573,7 +2573,7 @@ static int DoDtlsHandShakeMsg(CYASSL* ssl, byte* input, word32* inOutIdx, if (ssl->buffers.dtlsHandshake.length == 0) { /* Need to add a header back into the data. The Hash is calculated * as if this were a single message, not several fragments. */ - buf = XMALLOC(size + DTLS_HANDSHAKE_HEADER_SZ, + buf = (byte*)XMALLOC(size + DTLS_HANDSHAKE_HEADER_SZ, ssl->heap, DYNAMIC_TYPE_NONE); if (buf == NULL) return MEMORY_ERROR;