# HG changeset patch # User Steven Honeyman # Date 1413933172 -28800 # Node ID 964d41e3aeb2d51a0498d2f9da756a4bc1cde558 # Parent 7c9377467934bab9df11435638098d5b7e8ad132 Don't print "Failed loading hostkey" when -R delayed hostkey option is enabled diff -r 7c9377467934 -r 964d41e3aeb2 svr-runopts.c --- a/svr-runopts.c Tue Oct 21 22:33:49 2014 +0800 +++ b/svr-runopts.c Wed Oct 22 07:12:52 2014 +0800 @@ -410,7 +410,9 @@ 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