Skip to content

Commit

Permalink
Merge pull request #574 from JacobBarthelmeh/sshd
Browse files Browse the repository at this point in the history
  • Loading branch information
ejohnstown authored Sep 7, 2023
2 parents eb7d053 + aa6ba94 commit 3736704
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions apps/wolfsshd/wolfsshd.c
Original file line number Diff line number Diff line change
Expand Up @@ -2115,18 +2115,15 @@ static int StartSSHD(int argc, char** argv)
}
#endif

if (ret == WS_SUCCESS) {
if (ret == WS_SUCCESS && !testMode) {
wolfSSHD_ConfigSavePID(conf);
wolfSSH_Log(WS_LOG_INFO, "[SSHD] Starting to listen on port %d", port);
tcp_listen(&listenFd, &port, 1);
wolfSSH_Log(WS_LOG_INFO, "[SSHD] Listening on port %d", port);
if (wolfSSHD_AuthReducePermissions(auth) != WS_SUCCESS) {
wolfSSH_Log(WS_LOG_INFO, "[SSHD] Error lowering permissions level");
ret = WS_FATAL_ERROR;
}
}

if (ret == WS_SUCCESS && !testMode) {
wolfSSH_Log(WS_LOG_INFO, "[SSHD] Starting to listen on port %d", port);
tcp_listen(&listenFd, &port, 1);
wolfSSH_Log(WS_LOG_INFO, "[SSHD] Listening on port %d", port);

#ifdef WIN32
if (ret == WS_SUCCESS && isDaemon) {
Expand Down

0 comments on commit 3736704

Please sign in to comment.