diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-04-25 10:19:16 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-04-25 10:19:16 +0200 |
commit | 34af48e99a369b01f633e7c2e65274ec3280d66f (patch) | |
tree | 18834dbbbca8a7efb13fafa46cb9b3feb673cf2f /lib/gnutls_mpi.c | |
parent | 960c116cc1605333e454b2f6ca74fcb838ba8db4 (diff) | |
download | gnutls-34af48e99a369b01f633e7c2e65274ec3280d66f.tar.gz |
corrected bug in scan_nz()
Diffstat (limited to 'lib/gnutls_mpi.c')
-rw-r--r-- | lib/gnutls_mpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gnutls_mpi.c b/lib/gnutls_mpi.c index da6abba82b..688f399c73 100644 --- a/lib/gnutls_mpi.c +++ b/lib/gnutls_mpi.c @@ -152,7 +152,7 @@ _gnutls_mpi_scan_nz (bigint_t * ret_mpi, const void *buffer, size_t nbytes) /* MPIs with 0 bits are illegal */ - if (_gnutls_mpi_get_nbits (*ret_mpi) == 0) + if (_gnutls_mpi_cmp_ui (*ret_mpi, 0) == 0) { _gnutls_mpi_release (ret_mpi); return GNUTLS_E_MPI_SCAN_FAILED; |