Correct syntax of MBEDTLS_GET_UINT32_BE in write_new_session_ticket_mem

Signed-off-by: Ben Taylor <[email protected]>
This commit is contained in:
Ben Taylor
2026-06-10 08:38:36 +01:00
parent 0c62b498bd
commit 273c9b38b7
+1 -1
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: