From 02f5907499a29998ef112324e1c6715446b6b1e7 Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Wed, 15 Aug 2018 14:00:24 +0100 Subject: [PATCH] Correct misleading debugging output Usually, debug messages beginning with "=> and "<=" match up and indicate entering of and returning from functions, respectively. This commit fixes one exception to this rule in mbedtls_ssl_read_record(), which sometimes printed two messages of the form "<= XXX". --- 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 23b066c5cb..910e584985 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c @@ -4322,7 +4322,7 @@ int mbedtls_ssl_read_record( mbedtls_ssl_context *ssl, } else { - MBEDTLS_SSL_DEBUG_MSG( 2, ( "<= reuse previously read message" ) ); + MBEDTLS_SSL_DEBUG_MSG( 2, ( "reuse previously read message" ) ); ssl->keep_current_message = 0; }