Mercurial > dropbear
diff svr-main.c @ 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 | 10f4d3319780 |
children | 8c2b3506f112 |
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 */