From cfe64f0b24aedbf96f571c44bc7f4918455af2be Mon Sep 17 00:00:00 2001 From: Jerry Yu Date: Mon, 15 Nov 2021 13:54:06 +0800 Subject: [PATCH] fix various issues Signed-off-by: Jerry Yu --- library/ssl_tls13_generic.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/library/ssl_tls13_generic.c b/library/ssl_tls13_generic.c index 48678ff8e..12ef4d58c 100644 --- a/library/ssl_tls13_generic.c +++ b/library/ssl_tls13_generic.c @@ -1109,11 +1109,10 @@ void mbedtls_ssl_tls13_handshake_wrapup( mbedtls_ssl_context *ssl ) MBEDTLS_SSL_DEBUG_MSG( 3, ( "=> handshake wrapup" ) ); /* - * Free the previous session and switch in the current one + * Free the previous session and switch to the current one. */ if( ssl->session ) { - mbedtls_ssl_session_free( ssl->session ); mbedtls_free( ssl->session ); }