]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Richard Clark points out a missing check for ssh->mainchan being NULL.
authorSimon Tatham <anakin@pobox.com>
Fri, 24 Apr 2009 18:45:22 +0000 (18:45 +0000)
committerSimon Tatham <anakin@pobox.com>
Fri, 24 Apr 2009 18:45:22 +0000 (18:45 +0000)
[originally from svn r8502]

ssh.c

diff --git a/ssh.c b/ssh.c
index e1740f1f2ee694ff9d7a484b050f0b2029dce4d5..0aec421ebda1a443bb43706f63e500cb99abbc23 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -8570,7 +8570,7 @@ static void do_ssh2_authconn(Ssh ssh, unsigned char *in, int inlen,
     ssh->packet_dispatch[SSH2_MSG_CHANNEL_OPEN] =
        ssh2_msg_channel_open;
 
-    if (ssh->cfg.ssh_simple) {
+    if (ssh->mainchan && ssh->cfg.ssh_simple) {
        /*
         * This message indicates to the server that we promise
         * not to try to run any other channel in parallel with