mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-31 11:41:32 +01:00
* primegen.c (gen_prime): Bail out if NBITS is zero. This is
Debian bug #213989 reported by Max <rusmir@tula.net>.
This commit is contained in:
parent
342ae2b472
commit
240923a492
@ -1,3 +1,8 @@
|
||||
2003-10-06 Werner Koch <wk@gnupg.org>
|
||||
|
||||
* primegen.c (gen_prime): Bail out if NBITS is zero. This is
|
||||
Debian bug #213989 reported by Max <rusmir@tula.net>.
|
||||
|
||||
2003-08-12 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* random.c (getfnc_gather_random): Don't check NAME_OF_DEV_RANDOM
|
||||
|
@ -304,6 +304,9 @@ gen_prime( unsigned nbits, int secret, int randomlevel )
|
||||
if( 0 && DBG_CIPHER )
|
||||
log_debug("generate a prime of %u bits ", nbits );
|
||||
|
||||
if (!nbits)
|
||||
log_fatal ("trying to generate a prime of zero bits\n");
|
||||
|
||||
if( !no_of_small_prime_numbers ) {
|
||||
for(i=0; small_prime_numbers[i]; i++ )
|
||||
no_of_small_prime_numbers++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user