]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - ssh.c
Merge connection-sharing shutdown fix from pre-0.64.
[PuTTY.git] / ssh.c
diff --git a/ssh.c b/ssh.c
index c2af9e8039661d5e7e278c6f6e35920728ba4682..a69e7ca7ac81172f448edaa07ce6800b165e92ac 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -3293,6 +3293,14 @@ static int ssh_do_close(Ssh ssh, int notify_exit)
        ssh->portfwds = NULL;
     }
 
+    /*
+     * Also stop attempting to connection-share.
+     */
+    if (ssh->connshare) {
+        sharestate_free(ssh->connshare);
+        ssh->connshare = NULL;
+    }
+
     return ret;
 }