浏览代码

Failure when connection lost is detected while waiting for data

Source commit: 21c2f09f91ebdc8d4049882c8d3b58c8658d5e36
Martin Prikryl 3 年之前
父节点
当前提交
5c9ec290c6
共有 1 个文件被更改,包括 4 次插入1 次删除
  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
     __finally
     {
     {
-      handle_wait_list_free(WaitList);
+      if (WaitList != NULL)
+      {
+        handle_wait_list_free(WaitList);
+      }
     }
     }