mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-03 20:22:59 -05:00 
			
		
		
		
	Remove assertion in mbedtls_ssl_decrypt_buf()
mbedtls_ssl_decrypt_buf() asserts that the passed transform is not NULL, but the function is only invoked in a single place, and this invocation is clearly visible to be within a branch ensuring that the incoming transform isn't NULL. Remove the assertion for the benefit of code-size.
This commit is contained in:
		
							parent
							
								
									d96e10bf23
								
							
						
					
					
						commit
						47ebaa2205
					
				@ -2572,11 +2572,6 @@ int mbedtls_ssl_decrypt_buf( mbedtls_ssl_context *ssl,
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
    MBEDTLS_SSL_DEBUG_MSG( 2, ( "=> decrypt buf" ) );
 | 
			
		||||
    if( transform == NULL )
 | 
			
		||||
    {
 | 
			
		||||
        MBEDTLS_SSL_DEBUG_MSG( 1, ( "no transform provided to decrypt_buf" ) );
 | 
			
		||||
        return( MBEDTLS_ERR_SSL_INTERNAL_ERROR );
 | 
			
		||||
    }
 | 
			
		||||
    if( rec == NULL                     ||
 | 
			
		||||
        rec->buf == NULL                ||
 | 
			
		||||
        rec->buf_len < rec->data_offset ||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user