1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-28 00:21:48 +03:00

fix various issues

Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
Jerry Yu
2021-10-28 21:41:30 +08:00
parent a93ac116c8
commit 7aa7186022
2 changed files with 3 additions and 3 deletions

View File

@ -271,7 +271,7 @@ static int ssl_tls13_parse_certificate( mbedtls_ssl_context *ssl,
MBEDTLS_SSL_CHK_BUF_READ_PTR( p, end, 4 );
certificate_request_context_len = p[0];
certificate_list_len = ( p[1] << 16 ) | ( p[2] << 8 ) | p[3];
certificate_list_len = MBEDTLS_GET_UINT24_BE( p, 0 );
p += 4;
/* In theory, the certificate list can be up to 2^24 Bytes, but we don't