Add fix for leak

Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
This commit is contained in:
Ben Taylor 2026-05-07 17:24:50 +01:00
parent f5675fd064
commit a5c2e02198

View File

@ -3396,6 +3396,7 @@ static int ssl_write_new_session_ticket(mbedtls_ssl_context *ssl)
&tlen, &lifetime)) != 0) {
MBEDTLS_SSL_DEBUG_RET(1, "mbedtls_ssl_ticket_write", ret);
tlen = 0;
lifetime = 0;
}
MBEDTLS_PUT_UINT32_BE(lifetime, ssl->out_msg, 4);