From 14d3fa978646fa56a5678c1b9458a1fa2a8b104f Mon Sep 17 00:00:00 2001 From: deuce <> Date: Sun, 12 May 2013 00:05:02 +0000 Subject: [PATCH] Initialize the SSH mutex before any of the threads which use it are started. --- src/sbbs3/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sbbs3/main.cpp b/src/sbbs3/main.cpp index 366c6d2fd4..c05af294a2 100644 --- a/src/sbbs3/main.cpp +++ b/src/sbbs3/main.cpp @@ -1529,7 +1529,6 @@ void input_thread(void *arg) #endif pthread_mutex_init(&sbbs->input_thread_mutex,NULL); - pthread_mutex_init(&sbbs->ssh_mutex,NULL); sbbs->input_thread_running = true; sbbs->console|=CON_R_INPUT; @@ -5385,6 +5384,7 @@ NO_SSH: new_node->sys_status|=SS_RLOGIN; new_node->telnet_mode|=TELNET_MODE_OFF; // RLogin does not use Telnet commands } + pthread_mutex_init(&new_node->ssh_mutex,NULL); #ifdef USE_CRYPTLIB if(ssh) { SOCKET tmp_sock; -- GitLab