]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
do_ssh2_authconn() now installs the standard handlers for CHANNEL_SUCCESS
authorBen Harris <bjh21@bjh21.me.uk>
Sat, 1 Sep 2012 11:32:53 +0000 (11:32 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
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.

[originally from svn r9646]

ssh.c

diff --git a/ssh.c b/ssh.c
index c419a89dd05f83860b991f05d4a66ef9d9650fde..a40c00d84829593b69965622d0edf2c5bae06004 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -9328,13 +9328,6 @@ static void do_ssh2_authconn(Ssh ssh, unsigned char *in, int inlen,
     if (ssh->eof_needed)
        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!
      */