summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Honeyman <stevenhoneyman@gmail.com>2014-10-22 07:12:52 +0800
committerSteven Honeyman <stevenhoneyman@gmail.com>2014-10-22 07:12:52 +0800
commitd97cf51218c4b08a3667044eb5ce4f865219ee28 (patch)
treee6ccd7366bc23ec12db788aa5227bf5075cd46a8
parentf871edf02b8da94efb39e2486823543dda73fa3e (diff)
downloaddropbear-d97cf51218c4b08a3667044eb5ce4f865219ee28.tar.gz
Don't print "Failed loading hostkey" when -R delayed hostkey option is enabled
-rw-r--r--svr-runopts.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/svr-runopts.c b/svr-runopts.c
index 8380de3..1360813 100644
--- a/svr-runopts.c
+++ b/svr-runopts.c
@@ -410,7 +410,9 @@ static void loadhostkey(const char *keyfile, int fatal_duplicate) {
sign_key * read_key = new_sign_key();
enum signkey_type type = DROPBEAR_SIGNKEY_ANY;
if (readhostkey(keyfile, read_key, &type) == DROPBEAR_FAILURE) {
- dropbear_log(LOG_WARNING, "Failed loading %s", keyfile);
+ if (!svr_opts.delay_hostkey) {
+ dropbear_log(LOG_WARNING, "Failed loading %s", keyfile);
+ }
}
#ifdef DROPBEAR_RSA