Ver Fonte

Failure when connection lost is detected while waiting for data

Source commit: 21c2f09f91ebdc8d4049882c8d3b58c8658d5e36
Martin Prikryl há 3 anos atrás
pai
commit
5c9ec290c6
1 ficheiros alterados com 4 adições e 1 exclusões
  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);
+      }
     }