Merge pull request #1434 from SparkiDev/tls13_multi_recs
Fix multiple handshake messages in last record of certs
This commit is contained in:
commit
717ba83deb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user