diff 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
line wrap: on
line diff
--- a/cli-channel.c	Sun Mar 13 16:22:36 2005 +0000
+++ b/cli-channel.c	Sun Mar 13 16:23:19 2005 +0000
@@ -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");
 	}