Browse Source

Failure when aborting connection

Source commit: 5c2b9a17120d52563e0f4aea5fa3dd2771140fad
Martin Prikryl 3 years ago
parent
commit
894538cb5c
1 changed files with 4 additions and 0 deletions
  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);
     ssh_shutdown(ssh);
 
 
     if (is_tempseat(ssh->seat))
     if (is_tempseat(ssh->seat))
+    {
+        Seat * realseat = tempseat_get_real(ssh->seat); // WINSCP
         tempseat_free(ssh->seat);
         tempseat_free(ssh->seat);
+        ssh->seat = realseat; // WINSCP
+    }
 
 
     conf_free(ssh->conf);
     conf_free(ssh->conf);
     if (ssh->connshare)
     if (ssh->connshare)