changeset 590:a34a6a2e7c72

merge of '4b90e96a8a8afcc9feafc59cb47592a4a6d1cc30' and '94427244d30e268c74ddade212e31ba01f6f0950'
author Matt Johnston <matt@ucc.asn.au>
date Wed, 21 Jul 2010 13:53:29 +0000
parents 9fd27bc37807 (current diff) a55b97f5a485 (diff)
children 345aaed42ef4 afb089e70892
files
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libtommath/bn_mp_prime_next_prime.c	Wed Jul 21 13:53:23 2010 +0000
+++ b/libtommath/bn_mp_prime_next_prime.c	Wed Jul 21 13:53:29 2010 +0000
@@ -143,7 +143,7 @@
 
       /* is this prime? */
       for (x = 0; x < t; x++) {
-          mp_set(&b, ltm_prime_tab[t]);
+          mp_set(&b, ltm_prime_tab[x]);
           if ((err = mp_prime_miller_rabin(a, &b, &res)) != MP_OKAY) {
              goto LBL_ERR;
           }