commit | c110d025c220c4aa584d65107f1a193bd5a024a8 | [log] [tgz] |
---|---|---|
author | Paul Bakker <p.j.bakker@polarssl.org> | Fri Oct 19 12:15:08 2012 +0000 |
committer | Paul Bakker <p.j.bakker@polarssl.org> | Fri Oct 19 12:15:08 2012 +0000 |
tree | faf30d2a55415765299e53fda77039d895a0eb98 | |
parent | 0be82f20a96f0dc259fb6dea137a516bb4b53d27 [diff] |
- Added extra check to prevent crash on failed memory allocation
diff --git a/library/bignum.c b/library/bignum.c index 0008748..5d68520 100644 --- a/library/bignum.c +++ b/library/bignum.c
@@ -1087,7 +1087,7 @@ n = X.n - 1; t = Y.n - 1; - mpi_shift_l( &Y, biL * (n - t) ); + MPI_CHK( mpi_shift_l( &Y, biL * (n - t) ) ); while( mpi_cmp_mpi( &X, &Y ) >= 0 ) {