diff options
author | Steven Honeyman <stevenhoneyman@gmail.com> | 2014-10-22 07:12:52 +0800 |
---|---|---|
committer | Steven Honeyman <stevenhoneyman@gmail.com> | 2014-10-22 07:12:52 +0800 |
commit | d88034434c068badaaa5dad7da2de143a6fa6e13 (patch) | |
tree | 0d14fe675a399ec75227e3faee4457471fcde101 /svr-runopts.c | |
parent | 776d9087033b752a3dc82349e5d36cda3451de37 (diff) |
Don't print "Failed loading hostkey" when -R delayed hostkey option is enabled
Diffstat (limited to 'svr-runopts.c')
-rw-r--r-- | svr-runopts.c | 4 |
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 |