]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
A few more fixes in the new asynchronous-alert-box mechanism.
authorSimon Tatham <anakin@pobox.com>
Fri, 18 Feb 2005 18:19:28 +0000 (18:19 +0000)
committerSimon Tatham <anakin@pobox.com>
Fri, 18 Feb 2005 18:19:28 +0000 (18:19 +0000)
[originally from svn r5343]

ssh.c

diff --git a/ssh.c b/ssh.c
index 72f142f5426ebe3e90255edab50c7f3ee854dac4..7df67eb81234deb1112d24e9e69daa1802447ecd 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -2383,7 +2383,8 @@ static void ssh_process_queued_incoming_data(Ssh ssh)
 
 static void ssh_set_frozen(Ssh ssh, int frozen)
 {
-    sk_set_frozen(ssh->s, frozen);
+    if (ssh->s)
+       sk_set_frozen(ssh->s, frozen);
     ssh->frozen = frozen;
 }
 
@@ -5219,6 +5220,7 @@ static int do_ssh2_transport(Ssh ssh, void *vin, int inlen,
            if (s->dlgret == 0) {
                ssh->close_expected = TRUE;
                ssh_closing((Plug)ssh, NULL, 0, 0);
+               crStop(0);
            }
        }
 
@@ -5243,6 +5245,7 @@ static int do_ssh2_transport(Ssh ssh, void *vin, int inlen,
            if (s->dlgret == 0) {
                ssh->close_expected = TRUE;
                ssh_closing((Plug)ssh, NULL, 0, 0);
+               crStop(0);
            }
        }
 
@@ -5267,6 +5270,7 @@ static int do_ssh2_transport(Ssh ssh, void *vin, int inlen,
            if (s->dlgret == 0) {
                ssh->close_expected = TRUE;
                ssh_closing((Plug)ssh, NULL, 0, 0);
+               crStop(0);
            }
        }