1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-08 19:02:06 +03:00

SSH1: fix build

This commit is contained in:
Aris Adamantiadis
2011-09-02 11:15:28 +03:00
parent 92c8a71abb
commit 3eece8ac0b
3 changed files with 15 additions and 4 deletions

View File

@@ -421,7 +421,7 @@ static ssh_channel channel_from_msg(ssh_session session, ssh_buffer packet) {
#ifdef WITH_SSH1
/* With SSH1, the channel is always the first one */
if(session->version==1)
return session->channels;
return ssh_get_channel1(session);
#endif
if (buffer_get_u32(packet, &chan) != sizeof(uint32_t)) {
ssh_set_error(session, SSH_FATAL,