mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	Add debug output in case of assertion failure
This commit is contained in:
		
							parent
							
								
									6883874013
								
							
						
					
					
						commit
						62d58ed975
					
				@ -2297,6 +2297,7 @@ static int ssl_write_encrypted_pms( mbedtls_ssl_context *ssl,
 | 
				
			|||||||
    if( ssl->session_negotiate->peer_cert == NULL )
 | 
					    if( ssl->session_negotiate->peer_cert == NULL )
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        /* Should never happen */
 | 
					        /* Should never happen */
 | 
				
			||||||
 | 
					        MBEDTLS_SSL_DEBUG_MSG( 1, ( "should never happen" ) );
 | 
				
			||||||
        return( MBEDTLS_ERR_SSL_INTERNAL_ERROR );
 | 
					        return( MBEDTLS_ERR_SSL_INTERNAL_ERROR );
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    peer_pk = &ssl->session_negotiate->peer_cert->pk;
 | 
					    peer_pk = &ssl->session_negotiate->peer_cert->pk;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user