Fix: Add missing arguments to debug message.

Signed-off-by: Christian von Arnim <christian.von-arnim@isw.uni-stuttgart.de>
This commit is contained in:
Christian von Arnim 2020-12-01 11:58:29 +01:00
parent e533ff7bb7
commit 883d304785
No known key found for this signature in database
GPG Key ID: 12E6347C1B4EF014
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,2 @@
Bugfix
* Add missing arguments of debug message in mbedtls_ssl_decrypt_buf.

View File

@ -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;