allow for 0 length handshake messages, still need to store the message header

This commit is contained in:
John Safranek
2013-02-20 10:43:50 -08:00
parent 598043dd6f
commit ffc67892a4

View File

@@ -1656,7 +1656,6 @@ DtlsMsg* DtlsMsgNew(word32 sz, void* heap)
{
DtlsMsg* msg = NULL;
if (sz > 0)
msg = (DtlsMsg*)XMALLOC(sizeof(DtlsMsg), heap, DYNAMIC_TYPE_DTLS_MSG);
if (msg != NULL) {