From 44b10761cc9825b1847eaf081b460f75ab20b2e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Mon, 1 Jul 2019 11:18:53 +0200 Subject: [PATCH] Remove now-redundant code Due to previous change of conditions, this is now in the 'else' branch of 'if resume == 1' and the only allowed values are 0 or 1, so setting to 0 is redundant. --- library/ssl_cli.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/library/ssl_cli.c b/library/ssl_cli.c index 65f7c2cac..083ea3119 100644 --- a/library/ssl_cli.c +++ b/library/ssl_cli.c @@ -1830,9 +1830,6 @@ static int ssl_parse_server_hello( mbedtls_ssl_context *ssl ) #endif /* !MBEDTLS_SSL_NO_SESSION_RESUMPTION */ { ssl->state++; -#if !defined(MBEDTLS_SSL_NO_SESSION_RESUMPTION) - ssl->handshake->resume = 0; -#endif /* !MBEDTLS_SSL_NO_SESSION_RESUMPTION */ #if defined(MBEDTLS_HAVE_TIME) ssl->session_negotiate->start = mbedtls_time( NULL ); #endif