aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2010-07-16 23:04:54 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2010-07-16 23:04:54 +0200
commita4f4fa3058b41b1f5ef5a9a3a0bfcac32e6fd7aa (patch)
treea1490b461a42742e3732632c90d28fbcd63045a7
parenta9c4877d843842d6c9b5d2cf8208e6cc2337003e (diff)
downloadlibssh-a4f4fa3058b41b1f5ef5a9a3a0bfcac32e6fd7aa.tar.gz
libssh-a4f4fa3058b41b1f5ef5a9a3a0bfcac32e6fd7aa.tar.xz
libssh-a4f4fa3058b41b1f5ef5a9a3a0bfcac32e6fd7aa.zip
Fixed keepalive problem on older openssh servers
-rw-r--r--libssh/channels.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libssh/channels.c b/libssh/channels.c
index 11ce9e29..a0355796 100644
--- a/libssh/channels.c
+++ b/libssh/channels.c
@@ -555,7 +555,7 @@ static void channel_rcv_request(ssh_session session) {
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();