瀏覽代碼

Failure when aborting connection

Source commit: 5c2b9a17120d52563e0f4aea5fa3dd2771140fad
Martin Prikryl 3 年之前
父節點
當前提交
894538cb5c
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      source/putty/ssh/ssh.c

+ 4 - 0
source/putty/ssh/ssh.c

@@ -1000,7 +1000,11 @@ static void ssh_free(Backend *be)
     ssh_shutdown(ssh);
 
     if (is_tempseat(ssh->seat))
+    {
+        Seat * realseat = tempseat_get_real(ssh->seat); // WINSCP
         tempseat_free(ssh->seat);
+        ssh->seat = realseat; // WINSCP
+    }
 
     conf_free(ssh->conf);
     if (ssh->connshare)