# HG changeset patch # User Matt Johnston # Date 1093872402 0 # Node ID 775c6cbfe9959948caba8e84ea21435118807acf # Parent cca368f09f4fe7df59b204c9a551761cd641bfdf Load the hostkeys for inetd too - oops diff -r cca368f09f4f -r 775c6cbfe995 svr-main.c --- 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 */