# HG changeset patch # User Matt Johnston # Date 1279720409 0 # Node ID a34a6a2e7c723b7e388b84cb3fccd3de0605c17a # Parent 9fd27bc378072e44eb788ca702786df0472837ec# Parent a55b97f5a4856e5343cd89b22e3bb3722cca1ef5 merge of '4b90e96a8a8afcc9feafc59cb47592a4a6d1cc30' and '94427244d30e268c74ddade212e31ba01f6f0950' diff -r 9fd27bc37807 -r a34a6a2e7c72 libtommath/bn_mp_prime_next_prime.c --- 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; }