Skip to content
Snippets Groups Projects
Commit d8803443 authored by Steven Honeyman's avatar Steven Honeyman
Browse files

Don't print "Failed loading hostkey" when -R delayed hostkey option is enabled

parent 776d9087
No related merge requests found
...@@ -410,7 +410,9 @@ static void loadhostkey(const char *keyfile, int fatal_duplicate) { ...@@ -410,7 +410,9 @@ static void loadhostkey(const char *keyfile, int fatal_duplicate) {
sign_key * read_key = new_sign_key(); sign_key * read_key = new_sign_key();
enum signkey_type type = DROPBEAR_SIGNKEY_ANY; enum signkey_type type = DROPBEAR_SIGNKEY_ANY;
if (readhostkey(keyfile, read_key, &type) == DROPBEAR_FAILURE) { 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 #ifdef DROPBEAR_RSA
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment