comparison cli-channel.c @ 179:161557a9dde8

* fix longstanding bug with connections being closed on failure to connect to auth socket (server) * differentiate between get_byte and get_bool * get rid of some // comments * general tidying
author Matt Johnston <matt@ucc.asn.au>
date Sun, 13 Mar 2005 13:58:14 +0000
parents 0cfba3034be5
children 1c7bf9cec6c8
comparison
equal deleted inserted replaced
178:058cc7892636 179:161557a9dde8
31 #include "ssh.h" 31 #include "ssh.h"
32 32
33 /* We receive channel data - only used by the client chansession code*/ 33 /* We receive channel data - only used by the client chansession code*/
34 void recv_msg_channel_extended_data() { 34 void recv_msg_channel_extended_data() {
35 35
36 unsigned int chan;
37 struct Channel *channel; 36 struct Channel *channel;
38 unsigned int datatype; 37 unsigned int datatype;
39 38
40 TRACE(("enter recv_msg_channel_extended_data")) 39 TRACE(("enter recv_msg_channel_extended_data"))
41 40
42 chan = buf_getint(ses.payload); 41 channel = getchannel();
43 channel = getchannel(chan);
44
45 if (channel == NULL) { 42 if (channel == NULL) {
46 dropbear_exit("Unknown channel"); 43 dropbear_exit("Unknown channel");
47 } 44 }
48 45
49 if (channel->type != &clichansess) { 46 if (channel->type != &clichansess) {