From e00ae375d3cb981e0c804486517b33e99d89b540 Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Mon, 20 Aug 2018 09:39:42 +0100 Subject: [PATCH] Omit debug output in ssl_load_buffered_message outside a handshake --- library/ssl_tls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/ssl_tls.c b/library/ssl_tls.c index e6b5ad209..8ead5fa7c 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c @@ -4373,11 +4373,11 @@ static int ssl_load_buffered_message( mbedtls_ssl_context *ssl ) mbedtls_ssl_hs_buffer * hs_buf; int ret = 0; - MBEDTLS_SSL_DEBUG_MSG( 2, ( "=> ssl_load_buffered_messsage" ) ); - if( hs == NULL ) return( -1 ); + MBEDTLS_SSL_DEBUG_MSG( 2, ( "=> ssl_load_buffered_messsage" ) ); + if( ssl->state == MBEDTLS_SSL_CLIENT_CHANGE_CIPHER_SPEC || ssl->state == MBEDTLS_SSL_SERVER_CHANGE_CIPHER_SPEC ) {