diff svr-runopts.c @ 976:964d41e3aeb2

Don't print "Failed loading hostkey" when -R delayed hostkey option is enabled
author Steven Honeyman <stevenhoneyman@gmail.com>
date Wed, 22 Oct 2014 07:12:52 +0800
parents f92eb625c48d
children 47643024fc90
line wrap: on
line diff
--- 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