From e9839c001b8102545e6777f425ddb5c82e20f576 Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Tue, 26 Feb 2019 11:51:06 +0000 Subject: [PATCH] Add debug output in case of assertion failure --- library/ssl_cli.c | 1 + 1 file changed, 1 insertion(+) diff --git a/library/ssl_cli.c b/library/ssl_cli.c index 21797e7cf..c1cb6c32d 100644 --- a/library/ssl_cli.c +++ b/library/ssl_cli.c @@ -2320,6 +2320,7 @@ static int ssl_write_encrypted_pms( mbedtls_ssl_context *ssl, if( ssl->session_negotiate->peer_cert == NULL ) { /* Should never happen */ + MBEDTLS_SSL_DEBUG_MSG( 1, ( "should never happen" ) ); return( MBEDTLS_ERR_SSL_INTERNAL_ERROR ); } peer_pk = &ssl->session_negotiate->peer_cert->pk;