fixed another compile warning
This commit is contained in:
parent
68cb6044cb
commit
d1068d25d1
@ -2573,7 +2573,7 @@ static int DoDtlsHandShakeMsg(CYASSL* ssl, byte* input, word32* inOutIdx,
|
|||||||
if (ssl->buffers.dtlsHandshake.length == 0) {
|
if (ssl->buffers.dtlsHandshake.length == 0) {
|
||||||
/* Need to add a header back into the data. The Hash is calculated
|
/* Need to add a header back into the data. The Hash is calculated
|
||||||
* as if this were a single message, not several fragments. */
|
* 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);
|
ssl->heap, DYNAMIC_TYPE_NONE);
|
||||||
if (buf == NULL)
|
if (buf == NULL)
|
||||||
return MEMORY_ERROR;
|
return MEMORY_ERROR;
|
||||||
|
Loading…
Reference in New Issue
Block a user