Explorar o código

Failure when connection lost is detected while waiting for data

Source commit: 21c2f09f91ebdc8d4049882c8d3b58c8658d5e36
Martin Prikryl %!s(int64=3) %!d(string=hai) anos
pai
achega
5c9ec290c6
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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);
+      }
     }