diff options
author | 2000-11-16 17:55:43 +0000 | |
---|---|---|
committer | 2000-11-16 17:55:43 +0000 | |
commit | 250d06b5cca144eb0c765fc4c3a95db2fa61c288 (patch) | |
tree | bf625325096f49bc2dd44b99d74f0bc7a83213c1 /usr.bin/ssh/dh.c | |
parent | wait for the MACE to figure out whether it has media or not, and then (diff) | |
download | wireguard-openbsd-250d06b5cca144eb0c765fc4c3a95db2fa61c288.tar.xz wireguard-openbsd-250d06b5cca144eb0c765fc4c3a95db2fa61c288.zip |
do not use perror() in sshd, after the child is forked()
Diffstat (limited to 'usr.bin/ssh/dh.c')
-rw-r--r-- | usr.bin/ssh/dh.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/ssh/dh.c b/usr.bin/ssh/dh.c index ff84619cf68..35e9014333b 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.2 2000/10/11 20:11:35 markus Exp $"); +RCSID("$OpenBSD: dh.c,v 1.3 2000/11/16 17:55:43 markus Exp $"); #include "xmalloc.h" @@ -102,7 +102,6 @@ choose_dh(int minbits) f = fopen(DH_PRIMES, "r"); if (!f) { - perror(DH_PRIMES); log("WARNING: %s does not exist, using old prime", DH_PRIMES); return (dh_new_group1()); } @@ -133,8 +132,7 @@ choose_dh(int minbits) f = fopen(DH_PRIMES, "r"); if (!f) { - perror(DH_PRIMES); - exit(1); + fatal("WARNING: %s dissappeared, giving up", DH_PRIMES); } linenum = 0; |