commit | 405b091d9e3aefc5a9b2a4e51aabbb2bf002e51f | [log] [tgz] |
---|---|---|
author | Gilles Peskine <Gilles.Peskine@arm.com> | Thu Jun 03 11:38:26 2021 +0200 |
committer | Gilles Peskine <Gilles.Peskine@arm.com> | Thu Jun 03 18:10:04 2021 +0200 |
tree | c94a08f04aee991b2ba2e8727c500b9cf896a62b | |
parent | ed32b576a4ebfa2213236f53abb307375c651af6 [diff] [blame] |
Use MBEDTLS_MPI_CHK where warranted Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
diff --git a/library/bignum.c b/library/bignum.c index 45310fe..670d614 100644 --- a/library/bignum.c +++ b/library/bignum.c
@@ -2516,11 +2516,7 @@ 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 );