Correct syntax of MBEDTLS_GET_UINT32_BE in write_new_session_ticket_mem

Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
This commit is contained in:
Ben Taylor 2026-06-10 08:38:36 +01:00
parent e9332e8ebe
commit f2a1306c86

View File

@ -6432,7 +6432,7 @@ void write_new_session_ticket_mem()
* uninitialized memory.
* The read here causes MSan and Valgrind to complain if the bug isn't fixed.
*/
volatile unsigned char lifetime = MBEDTLS_GET_UINT32_BE(server_ep.ssl.out_msg + 4);
volatile uint32_t lifetime = MBEDTLS_GET_UINT32_BE(server_ep.ssl.out_msg, 4);
(void) lifetime;
exit: