From b589b81633faec635857516c3f6cc6b89af62d03 Mon Sep 17 00:00:00 2001 From: simon Date: Fri, 24 Apr 2009 18:45:22 +0000 Subject: [PATCH] Richard Clark points out a missing check for ssh->mainchan being NULL. git-svn-id: svn://svn.tartarus.org/sgt/putty@8502 cda61777-01e9-0310-a592-d414129be87e --- ssh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssh.c b/ssh.c index e1740f1f..0aec421e 100644 --- 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 -- 2.11.0