From: simon Date: Fri, 18 Feb 2005 18:19:28 +0000 (+0000) Subject: A few more fixes in the new asynchronous-alert-box mechanism. X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/a5a6f839780c4cb39f3001602162576d98e9fcca A few more fixes in the new asynchronous-alert-box mechanism. git-svn-id: svn://svn.tartarus.org/sgt/putty@5343 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/ssh.c b/ssh.c index 72f142f5..7df67eb8 100644 --- 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); } }