mirror of
https://github.com/clearml/dropbear
synced 2025-03-03 18:52:00 +00:00
Load the hostkeys for inetd too - oops
--HG-- extra : convert_revision : 815f75b9a450396fd5a9cca286803a91f0edc1a9
This commit is contained in:
parent
51fb224ef8
commit
0378cffafc
@ -138,9 +138,6 @@ void main_noinetd() {
|
||||
|
||||
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 @@ static void commonsetup() {
|
||||
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 */
|
||||
|
Loading…
Reference in New Issue
Block a user