mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 18:04:25 +09:00
Send back replies to openssh's keepalives
This commit is contained in:
@@ -552,6 +552,15 @@ static void channel_rcv_request(ssh_session session) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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_u32(session->out_buffer, htonl(channel->remote_channel));
|
||||||
|
packet_send(session);
|
||||||
|
leave_function();
|
||||||
|
return;
|
||||||
|
}
|
||||||
/* TODO call message_handle since it handles channel requests as messages */
|
/* TODO call message_handle since it handles channel requests as messages */
|
||||||
/* *but* reset buffer before !! */
|
/* *but* reset buffer before !! */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user