diff options
author | Werner Koch <wk@gnupg.org> | 2000-01-31 16:27:03 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2000-01-31 16:27:03 +0100 |
commit | 100fc8da591e38107c578dcbe39d6634c7731846 (patch) | |
tree | 496ddc3285819edb0d35626ee057b9f5abff6334 /cipher | |
parent | See ChangeLog: Thu Jan 27 18:00:44 CET 2000 Werner Koch (diff) | |
download | gnupg2-100fc8da591e38107c578dcbe39d6634c7731846.tar.xz gnupg2-100fc8da591e38107c578dcbe39d6634c7731846.zip |
See ChangeLog: Mon Jan 31 16:37:34 CET 2000 Werner Koch
Diffstat (limited to 'cipher')
-rw-r--r-- | cipher/ChangeLog | 5 | ||||
-rw-r--r-- | cipher/primegen.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/cipher/ChangeLog b/cipher/ChangeLog index cd899ed6c..c0657d727 100644 --- a/cipher/ChangeLog +++ b/cipher/ChangeLog @@ -1,3 +1,8 @@ +Mon Jan 31 16:37:34 CET 2000 Werner Koch <wk@gnupg.de> + + * genprime.c (generate_elg_prime): Fixed returned factors which never + worked for non-DSA keys. + Thu Jan 27 18:00:44 CET 2000 Werner Koch <wk@gnupg.de> * pubkey.c (sexp_to_key): Fixed mem leaks in case of errors. diff --git a/cipher/primegen.c b/cipher/primegen.c index 450337905..2f16b0838 100644 --- a/cipher/primegen.c +++ b/cipher/primegen.c @@ -221,7 +221,7 @@ generate_elg_prime( int mode, unsigned pbits, unsigned qbits, (*ret_factors)[i] = mpi_copy( factors[i] ); } else { - for(; i < n; i++ ) + for(i=0; i < n; i++ ) (*ret_factors)[i] = mpi_copy( factors[i] ); } } |