summaryrefslogtreecommitdiffstats
path: root/src/channels.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2011-09-02 11:15:28 +0300
committerAndreas Schneider <asn@cryptomilk.org>2011-09-02 23:02:27 +0200
commit058bb0f4ea24a23ae47f7bbe607c2efd446005d1 (patch)
tree318e6be99f5f3c16127690e8207250658b644293 /src/channels.c
parent64b125700eb472787eea6dba9d2ca29d8bc360d7 (diff)
SSH1: fix build
(cherry picked from commit 3eece8ac0b107a7df8d95325ef17ed19d6429e75) Conflicts: src/channels.c src/channels1.c
Diffstat (limited to 'src/channels.c')
-rw-r--r--src/channels.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/channels.c b/src/channels.c
index 8c078392..c3d847ab 100644
--- a/src/channels.c
+++ b/src/channels.c
@@ -390,10 +390,8 @@ static ssh_channel channel_from_msg(ssh_session session, ssh_buffer packet) {
uint32_t chan;
#ifdef WITH_SSH1
/* With SSH1, the channel is always the first one */
- if(session->version==1) {
- struct ssh_iterator *it = ssh_list_get_iterator(session->channels);
- return ssh_iterator_value(ssh_channel, it);
- }
+ if(session->version==1)
+ return ssh_get_channel1(session);
#endif
if (buffer_get_u32(packet, &chan) != sizeof(uint32_t)) {
ssh_set_error(session, SSH_FATAL,