Merge pull request #5606 from julek-wolfssl/zd14813-cont

0 len sz is allowed
This commit is contained in:
David Garske
2022-09-20 09:49:17 -07:00
committed by GitHub

View File

@ -8158,13 +8158,6 @@ DtlsMsg* DtlsMsgNew(word32 sz, byte tx, void* heap)
DtlsMsg* msg;
WOLFSSL_ENTER("DtlsMsgNew()");
#ifndef WOLFSSL_ASYNC_CRYPT
if (sz == 0) {
WOLFSSL_MSG("DtlsMsgNew: sz == 0 not allowed");
return NULL;
}
#endif
(void)heap;
msg = (DtlsMsg*)XMALLOC(sizeof(DtlsMsg), heap, DYNAMIC_TYPE_DTLS_MSG);