Add debug output in case of assertion failure
diff --git a/library/ssl_cli.c b/library/ssl_cli.c
index 21797e7..c1cb6c3 100644
--- a/library/ssl_cli.c
+++ b/library/ssl_cli.c
@@ -2320,6 +2320,7 @@
     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;