More use of sockaddr_union (above and beyond that necessary to remove current
[sgt/putty] / ssh.c
diff --git a/ssh.c b/ssh.c
index e1740f1..0aec421 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