summaryrefslogtreecommitdiffhomepage
path: root/cli-channel.c
diff options
context:
space:
mode:
Diffstat (limited to 'cli-channel.c')
-rw-r--r--cli-channel.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/cli-channel.c b/cli-channel.c
index 42e165b..1bd49ab 100644
--- a/cli-channel.c
+++ b/cli-channel.c
@@ -33,15 +33,12 @@
/* We receive channel data - only used by the client chansession code*/
void recv_msg_channel_extended_data() {
- unsigned int chan;
struct Channel *channel;
unsigned int datatype;
TRACE(("enter recv_msg_channel_extended_data"))
- chan = buf_getint(ses.payload);
- channel = getchannel(chan);
-
+ channel = getchannel();
if (channel == NULL) {
dropbear_exit("Unknown channel");
}