Merge pull request #1434 from SparkiDev/tls13_multi_recs

Fix multiple handshake messages in last record of certs
This commit is contained in:
toddouska 2018-03-14 09:46:32 -07:00 committed by GitHub
commit 717ba83deb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6687,9 +6687,9 @@ int DoTls13HandShakeMsg(WOLFSSL* ssl, byte* input, word32* inOutIdx,
else {
if (inputLength + ssl->arrays->pendingMsgOffset >
ssl->arrays->pendingMsgSz) {
return BUFFER_ERROR;
inputLength = ssl->arrays->pendingMsgSz -
ssl->arrays->pendingMsgOffset;
}
XMEMCPY(ssl->arrays->pendingMsg + ssl->arrays->pendingMsgOffset,
input + *inOutIdx, inputLength);
ssl->arrays->pendingMsgOffset += inputLength;