mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-03-24 10:35:12 +00:00
Use record length from record structure when fetching content in TLS
This commit is contained in:
parent
2720f4c33c
commit
9babbf7e75
|
@ -5931,8 +5931,7 @@ static int ssl_get_next_record( mbedtls_ssl_context *ssl )
|
||||||
/*
|
/*
|
||||||
* Fetch record contents from underlying transport.
|
* Fetch record contents from underlying transport.
|
||||||
*/
|
*/
|
||||||
ret = mbedtls_ssl_fetch_input( ssl,
|
ret = mbedtls_ssl_fetch_input( ssl, rec.buf_len );
|
||||||
mbedtls_ssl_in_hdr_len( ssl ) + ssl->in_msglen );
|
|
||||||
if( ret != 0 )
|
if( ret != 0 )
|
||||||
{
|
{
|
||||||
MBEDTLS_SSL_DEBUG_RET( 1, "mbedtls_ssl_fetch_input", ret );
|
MBEDTLS_SSL_DEBUG_RET( 1, "mbedtls_ssl_fetch_input", ret );
|
||||||
|
|
Loading…
Reference in a new issue