summaryrefslogtreecommitdiff
path: root/dh.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2004-08-12 22:40:59 +1000
committerDarren Tucker <dtucker@zip.com.au>2004-08-12 22:40:59 +1000
commit9a2bd1116bf3fdb236d8b10af1acb2e7e8fe6e60 (patch)
treedf64d62e19f9426b74f6681d2cde003555021aed /dh.c
parent5cb30ad2ec4fe129e6d2e440eb2eba1c01f71661 (diff)
- 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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dh.c b/dh.c
index 176fb7469..044d869fb 100644
--- a/dh.c
+++ b/dh.c
@@ -23,7 +23,7 @@
23 */ 23 */
24 24
25#include "includes.h" 25#include "includes.h"
26RCSID("$OpenBSD: dh.c,v 1.30 2004/06/13 12:53:24 djm Exp $"); 26RCSID("$OpenBSD: dh.c,v 1.31 2004/08/04 10:37:52 djm Exp $");
27 27
28#include "xmalloc.h" 28#include "xmalloc.h"
29 29
@@ -145,7 +145,7 @@ choose_dh(int min, int wantbits, int max)
145 if (bestcount == 0) { 145 if (bestcount == 0) {
146 fclose(f); 146 fclose(f);
147 logit("WARNING: no suitable primes in %s", _PATH_DH_PRIMES); 147 logit("WARNING: no suitable primes in %s", _PATH_DH_PRIMES);
148 return (NULL); 148 return (dh_new_group14());
149 } 149 }
150 150
151 linenum = 0; 151 linenum = 0;