tls13: Fix certificate extension size write

Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
Ronald Cron 2022-06-01 14:58:52 +02:00
parent 139d0aa9d3
commit 11b5332ffc

View file

@ -812,7 +812,7 @@ static int ssl_tls13_write_certificate_body( mbedtls_ssl_context *ssl,
/* Currently, we don't have any certificate extensions defined.
* Hence, we are sending an empty extension with length zero.
*/
MBEDTLS_PUT_UINT24_BE( 0, p, 0 );
MBEDTLS_PUT_UINT16_BE( 0, p, 0 );
p += 2;
}