From 0d4b376ddf559b88b6625ba1821ae4b128f9a08a Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Mon, 20 Aug 2018 09:36:59 +0100 Subject: [PATCH] Return through cleanup section in ssl_load_buffered_message() --- library/ssl_tls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/ssl_tls.c b/library/ssl_tls.c index c00c974962..e6b5ad2095 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c @@ -4387,7 +4387,7 @@ static int ssl_load_buffered_message( mbedtls_ssl_context *ssl ) { MBEDTLS_SSL_DEBUG_MSG( 2, ( "CCS not seen in the current flight" ) ); ret = -1; - return( -1 ); + goto exit; } MBEDTLS_SSL_DEBUG_MSG( 2, ( "Inject buffered CCS message" ) );