]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Merge connection-sharing shutdown fix from pre-0.64.
authorSimon Tatham <anakin@pobox.com>
Mon, 10 Nov 2014 18:32:12 +0000 (18:32 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 10 Nov 2014 18:32:12 +0000 (18:32 +0000)
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;
 }