From 883d304785de2e28129ba99f407300bae86bcec5 Mon Sep 17 00:00:00 2001 From: Christian von Arnim Date: Tue, 1 Dec 2020 11:58:29 +0100 Subject: [PATCH] Fix: Add missing arguments to debug message. Signed-off-by: Christian von Arnim --- ...issing-debug-message-arguments_mbedtls_ssl_decrypt_buf.txt | 2 ++ library/ssl_msg.c | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 ChangeLog.d/missing-debug-message-arguments_mbedtls_ssl_decrypt_buf.txt diff --git a/ChangeLog.d/missing-debug-message-arguments_mbedtls_ssl_decrypt_buf.txt b/ChangeLog.d/missing-debug-message-arguments_mbedtls_ssl_decrypt_buf.txt new file mode 100644 index 000000000..e03178feb --- /dev/null +++ b/ChangeLog.d/missing-debug-message-arguments_mbedtls_ssl_decrypt_buf.txt @@ -0,0 +1,2 @@ +Bugfix + * Add missing arguments of debug message in mbedtls_ssl_decrypt_buf. diff --git a/library/ssl_msg.c b/library/ssl_msg.c index bdf882d87..0718d5a1d 100644 --- a/library/ssl_msg.c +++ b/library/ssl_msg.c @@ -1384,7 +1384,9 @@ int mbedtls_ssl_decrypt_buf( mbedtls_ssl_context const *ssl, /* Check that there's space for the authentication tag. */ if( rec->data_len < transform->taglen ) { - MBEDTLS_SSL_DEBUG_MSG( 1, ( "msglen (%d) < taglen (%d) " ) ); + MBEDTLS_SSL_DEBUG_MSG( 1, ( "msglen (%d) < taglen (%d) ", + rec->data_len, + transform->taglen ) ); return( MBEDTLS_ERR_SSL_INVALID_MAC ); } rec->data_len -= transform->taglen;