mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-27 08:04:21 +01:00
Use MBEDTLS_MPI_CHK where warranted
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
3130ce24f4
commit
c0b68bf03a
@ -2516,11 +2516,7 @@ int mbedtls_mpi_random( mbedtls_mpi *X,
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
ret = mbedtls_mpi_lt_mpi_ct( X, N, &cmp );
|
||||
if( ret != 0 )
|
||||
{
|
||||
goto cleanup;
|
||||
}
|
||||
MBEDTLS_MPI_CHK( mbedtls_mpi_lt_mpi_ct( X, N, &cmp ) );
|
||||
}
|
||||
while( mbedtls_mpi_cmp_int( X, min ) < 0 || cmp != 1 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user