aboutsummaryrefslogtreecommitdiff
path: root/libssh
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2010-07-16 23:16:04 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2010-07-16 23:16:04 +0200
commit96b06e8bb430342a416d0b31bf3554e52298a78f (patch)
treea892570b834f3dcd26bcf0d2208d60fe973f049d /libssh
parenta8efffa96963e47ca604b251b09cc23999ac512c (diff)
downloadlibssh-96b06e8bb430342a416d0b31bf3554e52298a78f.tar.gz
libssh-96b06e8bb430342a416d0b31bf3554e52298a78f.tar.xz
libssh-96b06e8bb430342a416d0b31bf3554e52298a78f.zip
Fixed keepalive problem on older openssh servers
Conflicts: libssh/channels.c
Diffstat (limited to 'libssh')
-rw-r--r--libssh/channels.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libssh/channels.c b/libssh/channels.c
index 869ef5a..06149ef 100644
--- a/libssh/channels.c
+++ b/libssh/channels.c
@@ -629,7 +629,7 @@ SSH_PACKET_CALLBACK(channel_rcv_request) {
if(strcmp(request,"keepalive@openssh.com")==0){
SAFE_FREE(request);
ssh_log(session, SSH_LOG_PROTOCOL,"Responding to Openssh's keepalive");
- buffer_add_u8(session->out_buffer, SSH2_MSG_CHANNEL_SUCCESS);
+ buffer_add_u8(session->out_buffer, SSH2_MSG_CHANNEL_FAILURE);
buffer_add_u32(session->out_buffer, htonl(channel->remote_channel));
packet_send(session);
leave_function();