diff options
author | 2001-06-22 21:27:07 +0000 | |
---|---|---|
committer | 2001-06-22 21:27:07 +0000 | |
commit | b225231fa4a92b0079dd3ca3070caeb2b4ef609b (patch) | |
tree | d50feb7c512ca93e711b8a195d01f48dc6b9e2cf /usr.bin/ssh/dh.c | |
parent | minor nit. (diff) | |
download | wireguard-openbsd-b225231fa4a92b0079dd3ca3070caeb2b4ef609b.tar.xz wireguard-openbsd-b225231fa4a92b0079dd3ca3070caeb2b4ef609b.zip |
use /etc/moduli instead of /etc/primes, okay markus@
Diffstat (limited to 'usr.bin/ssh/dh.c')
-rw-r--r-- | usr.bin/ssh/dh.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/ssh/dh.c b/usr.bin/ssh/dh.c index 575522ddb5e..26deb9fbf07 100644 --- a/usr.bin/ssh/dh.c +++ b/usr.bin/ssh/dh.c @@ -23,7 +23,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: dh.c,v 1.14 2001/04/15 08:43:45 markus Exp $"); +RCSID("$OpenBSD: dh.c,v 1.15 2001/06/22 21:27:07 provos Exp $"); #include "xmalloc.h" @@ -108,9 +108,9 @@ choose_dh(int min, int wantbits, int max) int linenum; struct dhgroup dhg; - f = fopen(_PATH_DH_PRIMES, "r"); - if (!f) { - log("WARNING: %s does not exist, using old prime", _PATH_DH_PRIMES); + if ((f = fopen(_PATH_DH_MODULI, "r")) == NULL && + (f = fopen(_PATH_DH_PRIMES, "r")) == NULL) { + log("WARNING: %s does not exist, using old modulus", _PATH_DH_MODULI); return (dh_new_group1()); } |