From 95d1b93c696250a2a6866fa208526726e81f2147 Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Fri, 19 Jul 2019 15:07:19 +0100 Subject: [PATCH] Don't reset timer during mbedtls_ssl_setup() At that point, the timer might not yet be configured. The timer is reset at the following occasions: - when it is initially configured through mbedtls_ssl_set_timer_cb() or mbedtls_ssl_set_timer_cb_cx() - when a session is reset in mbedtls_ssl_session_reset() - when a handshake finishes via mbedtls_ssl_handshake_wrap() --- library/ssl_tls.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/library/ssl_tls.c b/library/ssl_tls.c index 0b1ebddcf..d106ca6e7 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c @@ -7777,8 +7777,6 @@ static int ssl_handshake_init( mbedtls_ssl_context *ssl ) ssl->handshake->retransmit_state = MBEDTLS_SSL_RETRANS_PREPARING; else ssl->handshake->retransmit_state = MBEDTLS_SSL_RETRANS_WAITING; - - ssl_set_timer( ssl, 0 ); } #endif