don't try to defragment handshake messages outside the handshake

This commit is contained in:
John Safranek
2015-10-13 14:21:39 -07:00
parent 67861bb222
commit c0210491d9

View File

@@ -5272,6 +5272,16 @@ static int DoHandShakeMsg(WOLFSSL* ssl, byte* input, word32* inOutIdx,
WOLFSSL_ENTER("DoHandShakeMsg()");
if (ssl->arrays == NULL) {
byte type;
word32 size;
if (GetHandShakeHeader(ssl,input,inOutIdx,&type, &size, totalSz) != 0)
return PARSE_ERROR;
return DoHandShakeMsgType(ssl, input, inOutIdx, type, size, totalSz);
}
inputLength = ssl->buffers.inputBuffer.length - *inOutIdx;
/* If there is a pending fragmented handshake message,