Browse Source

Failure when connection lost is detected while waiting for data

Source commit: 21c2f09f91ebdc8d4049882c8d3b58c8658d5e36
Martin Prikryl 3 years ago
parent
commit
5c9ec290c6
1 changed files with 4 additions and 1 deletions
  1. 4 1
      source/core/SecureShell.cpp

+ 4 - 1
source/core/SecureShell.cpp

@@ -2101,7 +2101,10 @@ bool __fastcall TSecureShell::EventSelectLoop(unsigned int MSec, bool ReadEventR
     }
     __finally
     {
-      handle_wait_list_free(WaitList);
+      if (WaitList != NULL)
+      {
+        handle_wait_list_free(WaitList);
+      }
     }