[SCM] GNU gnutls branch, master, updated. gnutls_3_0_9-2-g7daf230

"Nikos Mavrogiannopoulos" <[email protected]>
Newsgroups gmane.comp.encryption.gpg.gnutls.cvs
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU gnutls".

http://git.savannah.gnu.org/cgit/gnutls.git/commit/?id=7daf2300d81dbeeee870299ba3bf7d1ebe3a0d12

The branch, master has been updated
       via  7daf2300d81dbeeee870299ba3bf7d1ebe3a0d12 (commit)
      from  a2c6a106b63a3846358d1e2cd5638504000194ec (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 7daf2300d81dbeeee870299ba3bf7d1ebe3a0d12
Author: Nikos Mavrogiannopoulos <[email protected]>
Date:   Fri Dec 16 05:02:45 2011 +0100

    correctly set the odd bits.

-----------------------------------------------------------------------

Summary of changes:
 lib/nettle/mpi.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/nettle/mpi.c b/lib/nettle/mpi.c
index 0ebdcf4..f1342ec 100644
--- a/lib/nettle/mpi.c
+++ b/lib/nettle/mpi.c
@@ -474,7 +474,7 @@ gen_group (mpz_t * prime, mpz_t * generator, unsigned int nbits, unsigned int *q
 
       nettle_mpz_set_str_256_u (w, w_bytes, buffer);
       /* always odd */
-      mpz_setbit (q, 0);
+      mpz_setbit (w, 0);
 
       ret = mpz_probab_prime_p (w, PRIME_CHECK_PARAM);
       if (ret > 0)
@@ -500,7 +500,7 @@ gen_group (mpz_t * prime, mpz_t * generator, unsigned int nbits, unsigned int *q
 
       nettle_mpz_set_str_256_u (q, q_bytes, buffer);
       /* always odd */
-      mpz_setbit (w, 0);
+      mpz_setbit (q, 0);
 
       ret = mpz_probab_prime_p (q, PRIME_CHECK_PARAM);
       if (ret == 0)


hooks/post-receive
-- 
GNU gnutls
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.