do_ssh2_authconn() now installs the standard handlers for CHANNEL_SUCCESS
authorben <ben@cda61777-01e9-0310-a592-d414129be87e>
Sat, 1 Sep 2012 11:32:53 +0000 (11:32 +0000)
committerben <ben@cda61777-01e9-0310-a592-d414129be87e>
Sat, 1 Sep 2012 11:32:53 +0000 (11:32 +0000)
and CHANNEL_FAILURE as soon as it's opened a channel, so there's no need
for it to set them again later.

git-svn-id: svn://svn.tartarus.org/sgt/putty@9646 cda61777-01e9-0310-a592-d414129be87e

ssh.c

diff --git a/ssh.c b/ssh.c
index c419a89..a40c00d 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -9329,13 +9329,6 @@ static void do_ssh2_authconn(Ssh ssh, unsigned char *in, int inlen,
        ssh_special(ssh, TS_EOF);
 
     /*
-     * All the initial channel requests are done, so install the default
-     * response handler.
-     */
-    ssh->packet_dispatch[SSH2_MSG_CHANNEL_SUCCESS] = ssh2_msg_channel_response;
-    ssh->packet_dispatch[SSH2_MSG_CHANNEL_FAILURE] = ssh2_msg_channel_response;
-
-    /*
      * Transfer data!
      */
     if (ssh->ldisc)