mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	Remove a redundant function call
Remove a call to `mbedtls_mpi_bitlen()` since the returned value is overwritten in the line after. This is redundant since da31fa137a1183d3feed5981af6d05c550a8c005. Fixes #2377.
This commit is contained in:
		
							parent
							
								
									89e7655691
								
							
						
					
					
						commit
						c95d9eedbf
					
				@ -2410,8 +2410,6 @@ static int mpi_miller_rabin( const mbedtls_mpi *X, size_t rounds,
 | 
				
			|||||||
    MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &R, &W ) );
 | 
					    MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &R, &W ) );
 | 
				
			||||||
    MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( &R, s ) );
 | 
					    MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( &R, s ) );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    i = mbedtls_mpi_bitlen( X );
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    for( i = 0; i < rounds; i++ )
 | 
					    for( i = 0; i < rounds; i++ )
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        /*
 | 
					        /*
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user