mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	Merge pull request #4380 from paul-elliott-arm/bignum_unchecked_return
Fix unchecked return value in bignum
This commit is contained in:
		
						commit
						2bbb5bc6bf
					
				@ -1666,8 +1666,7 @@ int mbedtls_mpi_mul_int( mbedtls_mpi *X, const mbedtls_mpi *A, mbedtls_mpi_uint
 | 
			
		||||
     * calculating the result is trivial in those cases. */
 | 
			
		||||
    if( b == 0 || n == 0 )
 | 
			
		||||
    {
 | 
			
		||||
        mbedtls_mpi_lset( X, 0 );
 | 
			
		||||
        return( 0 );
 | 
			
		||||
        return( mbedtls_mpi_lset( X, 0 ) );
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /* Calculate A*b as A + A*(b-1) to take advantage of mpi_mul_hlp */
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user