summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/sshd.c
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2001-04-15 16:58:04 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2001-04-15 16:58:04 +0000
commit8747aa7bf85d9c847c2cb2438bbb876c6faa7667 (patch)
treebd0098d9ee081bb9c7c6c45c7f68ab1fff54235f /usr.bin/ssh/sshd.c
parente309166fcfe403129197403fc8267de795a161ba (diff)
don't use errno for key_{load,save}_private; discussion w/ solar@openwall
Diffstat (limited to 'usr.bin/ssh/sshd.c')
-rw-r--r--usr.bin/ssh/sshd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/sshd.c b/usr.bin/ssh/sshd.c
index db39d929e2a..2c7b201f040 100644
--- a/usr.bin/ssh/sshd.c
+++ b/usr.bin/ssh/sshd.c
@@ -40,7 +40,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: sshd.c,v 1.194 2001/04/15 08:43:47 markus Exp $");
+RCSID("$OpenBSD: sshd.c,v 1.195 2001/04/15 16:58:03 markus Exp $");
#include <openssl/dh.h>
#include <openssl/bn.h>
@@ -685,8 +685,8 @@ main(int ac, char **av)
key = key_load_private(options.host_key_files[i], "", NULL);
sensitive_data.host_keys[i] = key;
if (key == NULL) {
- error("Could not load host key: %.200s: %.100s",
- options.host_key_files[i], strerror(errno));
+ error("Could not load host key: %s",
+ options.host_key_files[i]);
sensitive_data.host_keys[i] = NULL;
continue;
}