comparison cli-channel.c @ 182:aeca43462eee

merge of 954df0829153a81396cf111410fae269457c3ad6 and d7e8c6af971415504a2b626bf6dc1a4d50cdc5d7
author Matt Johnston <matt@ucc.asn.au>
date Sun, 13 Mar 2005 16:23:19 +0000
parents 161557a9dde8
children 1c7bf9cec6c8
comparison
equal deleted inserted replaced
180:743fce568f49 182:aeca43462eee
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) {