diff options
Diffstat (limited to 'dh.c')
-rw-r--r-- | dh.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -23,7 +23,7 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "includes.h" | 25 | #include "includes.h" |
26 | RCSID("$OpenBSD: dh.c,v 1.14 2001/04/15 08:43:45 markus Exp $"); | 26 | RCSID("$OpenBSD: dh.c,v 1.15 2001/06/22 21:27:07 provos Exp $"); |
27 | 27 | ||
28 | #include "xmalloc.h" | 28 | #include "xmalloc.h" |
29 | 29 | ||
@@ -108,9 +108,9 @@ choose_dh(int min, int wantbits, int max) | |||
108 | int linenum; | 108 | int linenum; |
109 | struct dhgroup dhg; | 109 | struct dhgroup dhg; |
110 | 110 | ||
111 | f = fopen(_PATH_DH_PRIMES, "r"); | 111 | if ((f = fopen(_PATH_DH_MODULI, "r")) == NULL && |
112 | if (!f) { | 112 | (f = fopen(_PATH_DH_PRIMES, "r")) == NULL) { |
113 | log("WARNING: %s does not exist, using old prime", _PATH_DH_PRIMES); | 113 | log("WARNING: %s does not exist, using old modulus", _PATH_DH_MODULI); |
114 | return (dh_new_group1()); | 114 | return (dh_new_group1()); |
115 | } | 115 | } |
116 | 116 | ||