diff options
Diffstat (limited to 'dh.c')
-rw-r--r-- | dh.c | 6 |
1 files changed, 2 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.2 2000/10/11 20:11:35 markus Exp $"); | 26 | RCSID("$OpenBSD: dh.c,v 1.3 2000/11/16 17:55:43 markus Exp $"); |
27 | 27 | ||
28 | #include "xmalloc.h" | 28 | #include "xmalloc.h" |
29 | 29 | ||
@@ -102,7 +102,6 @@ choose_dh(int minbits) | |||
102 | 102 | ||
103 | f = fopen(DH_PRIMES, "r"); | 103 | f = fopen(DH_PRIMES, "r"); |
104 | if (!f) { | 104 | if (!f) { |
105 | perror(DH_PRIMES); | ||
106 | log("WARNING: %s does not exist, using old prime", DH_PRIMES); | 105 | log("WARNING: %s does not exist, using old prime", DH_PRIMES); |
107 | return (dh_new_group1()); | 106 | return (dh_new_group1()); |
108 | } | 107 | } |
@@ -133,8 +132,7 @@ choose_dh(int minbits) | |||
133 | 132 | ||
134 | f = fopen(DH_PRIMES, "r"); | 133 | f = fopen(DH_PRIMES, "r"); |
135 | if (!f) { | 134 | if (!f) { |
136 | perror(DH_PRIMES); | 135 | fatal("WARNING: %s dissappeared, giving up", DH_PRIMES); |
137 | exit(1); | ||
138 | } | 136 | } |
139 | 137 | ||
140 | linenum = 0; | 138 | linenum = 0; |