Mercurial > dropbear
comparison cli-channel.c @ 219:654bc8327787
merge of 9522146cb07d4576f161fc4567c2c2fbd6f61fbb
and b11630c15bc4d0649dba51c3572cac6f44e0ab0e
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 08 Jul 2005 13:28:03 +0000 |
parents | 161557a9dde8 |
children | 1c7bf9cec6c8 |
comparison
equal
deleted
inserted
replaced
218:3ee0c2f85e1e | 219:654bc8327787 |
---|---|
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) { |