Skip to content
Snippets Groups Projects
Commit b5d19603 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Connection and logon linked lists need re-init for every recycle

Each list mutex is destroyed in the call to listFree() in cleanup(). Without a call to listInit(), the mutex is not recreated and thus the lists are no longer mutex-protected after a recycle. No negative consequences were observed from this issue, but a potential issue it is (was).
parent 52b959c8
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -6086,10 +6086,10 @@ void DLLCALL mail_server(void* arg) ...@@ -6086,10 +6086,10 @@ void DLLCALL mail_server(void* arg)
SetThreadName("sbbs/mailServer"); SetThreadName("sbbs/mailServer");
protected_uint32_init(&thread_count, 0); protected_uint32_init(&thread_count, 0);
listInit(&current_logins, LINK_LIST_MUTEX);
listInit(&current_connections, LINK_LIST_MUTEX);
do { do {
listInit(&current_logins, LINK_LIST_MUTEX);
listInit(&current_connections, LINK_LIST_MUTEX);
protected_uint32_init(&active_clients, 0); protected_uint32_init(&active_clients, 0);
/* Setup intelligent defaults */ /* Setup intelligent defaults */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment