diff options
author | dtucker <dtucker> | 2004-08-12 12:40:59 +0000 |
---|---|---|
committer | dtucker <dtucker> | 2004-08-12 12:40:59 +0000 |
commit | 897d98b47580256445ddd1360df0f3abe5ce2c28 (patch) | |
tree | 0d8cdae9100af6aadc4859fec184aa18adba6926 /dh.c | |
parent | 589cafa7b0c9c9de2bc7500096d215c52709d4e1 (diff) | |
download | openssh-897d98b47580256445ddd1360df0f3abe5ce2c28.tar.gz |
- djm@cvs.openbsd.org 2004/08/04 10:37:52
[dh.c]
return group14 when no primes found - fixes hang on empty /etc/moduli;
ok markus@
Diffstat (limited to 'dh.c')
-rw-r--r-- | dh.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -23,7 +23,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: dh.c,v 1.30 2004/06/13 12:53:24 djm Exp $"); +RCSID("$OpenBSD: dh.c,v 1.31 2004/08/04 10:37:52 djm Exp $"); #include "xmalloc.h" @@ -145,7 +145,7 @@ choose_dh(int min, int wantbits, int max) if (bestcount == 0) { fclose(f); logit("WARNING: no suitable primes in %s", _PATH_DH_PRIMES); - return (NULL); + return (dh_new_group14()); } linenum = 0; |