* Fix incorrect order, passing of variables to m_out_of_n, in prime_generate_internal().

Joshua Rogers git at internot.info
Sun Dec 28 06:29:14 CET 2014


* cipher/primegen.c (prime_generate_internal): Correctly pass 'm' and 'n' to the m_out_of_n function.
--

Signed-off-by: Joshua Rogers <git at internot.info>
---
 cipher/primegen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cipher/primegen.c b/cipher/primegen.c
index ce6db8d..55bfc1d 100644
--- a/cipher/primegen.c
+++ b/cipher/primegen.c
@@ -484,7 +484,7 @@ prime_generate_internal (int need_q_factor,
       else
         {
           /* Get next permutation. */
-          m_out_of_n ( (char*)perms, n, m);
+          m_out_of_n ( (char*)perms, m, n);
 
           if ((err = gpgrt_lock_lock (&primepool_lock)))
             goto leave;
-- 
1.9.1




More information about the Gcrypt-devel mailing list