summaryrefslogtreecommitdiffstats
path: root/cipher
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2000-01-31 16:27:03 +0100
committerWerner Koch <wk@gnupg.org>2000-01-31 16:27:03 +0100
commit100fc8da591e38107c578dcbe39d6634c7731846 (patch)
tree496ddc3285819edb0d35626ee057b9f5abff6334 /cipher
parentSee ChangeLog: Thu Jan 27 18:00:44 CET 2000 Werner Koch (diff)
downloadgnupg2-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/ChangeLog5
-rw-r--r--cipher/primegen.c2
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] );
}
}