changeset 113:775c6cbfe995

Load the hostkeys for inetd too - oops
author Matt Johnston <matt@ucc.asn.au>
date Mon, 30 Aug 2004 13:26:42 +0000
parents cca368f09f4f
children 2be6aa26a8c9
files svr-main.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/svr-main.c	Fri Aug 27 17:01:18 2004 +0000
+++ b/svr-main.c	Mon Aug 30 13:26:42 2004 +0000
@@ -138,9 +138,6 @@
 
 	commonsetup();
 
-	/* Now we can setup the hostkeys - needs to be after logging is on,
-	 * otherwise we might end up blatting error messages to the socket */
-	loadhostkeys();
 
 	/* should be done after syslog is working */
 	if (svr_opts.forkbg) {
@@ -355,6 +352,10 @@
 	if (signal(SIGSEGV, sigsegv_handler) == SIG_ERR) {
 		dropbear_exit("signal() error");
 	}
+
+	/* Now we can setup the hostkeys - needs to be after logging is on,
+	 * otherwise we might end up blatting error messages to the socket */
+	loadhostkeys();
 }
 
 /* Set up listening sockets for all the requested ports */