MatrixSSL 4.6.0

This commit is contained in:
matrixssl-admin
2022-12-29 11:25:01 +02:00
parent 69b5f2c6c3
commit effeb14219
15 changed files with 73 additions and 20 deletions

View File

@@ -269,7 +269,14 @@ parse_next_record_header:
}
/* Done - tell the caller what we've consumed. */
*in += parsedBytes;
*len -= parsedBytes;
if (*len >= parsedBytes)
{
*len -= parsedBytes;
}
else
{
return MATRIXSSL_ERROR;
}
*remaining -= PS_MIN(parsedBytes, *remaining);
/* If there's handshake message waiting in outbuf then send it */
if (ssl->outlen > 0)