From 2687ff57aa700da2866aa2d9637a2d949a5979e5 Mon Sep 17 00:00:00 2001 From: Ken Sanislo Date: Thu, 23 Jul 2026 19:10:31 -0700 Subject: [PATCH] NetworkClient: initialize client_active and profilemanager_thread StopClient guards profilemanager_thread and nulls it after the delete, but nothing ever set it, so destroying a client that never started read an uninitialized pointer. client_active was unset until StartClient and is read on the same path. --- NetworkClient.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/NetworkClient.cpp b/NetworkClient.cpp index bb2bb60bb..88ddcb175 100644 --- a/NetworkClient.cpp +++ b/NetworkClient.cpp @@ -96,6 +96,9 @@ NetworkClient::NetworkClient() server_reinitialize = false; change_in_progress = false; + client_active = false; + profilemanager_thread = NULL; + ListenThread = NULL; ConnectionThread = NULL; }