diff options
author | Matt Johnston <matt@ucc.asn.au> | 2014-08-19 23:08:56 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2014-08-19 23:08:56 +0800 |
commit | 6d2d3669f39f12182b79a0067f477b58948897f6 (patch) | |
tree | 710285eb2899e8dc49108f0d690edceb811d0644 /cli-session.c | |
parent | 1387654cc8ac3f14b1c144f838fee5d0f51921c0 (diff) |
Make keepalive handling more robust, this should now match what OpenSSH does
Diffstat (limited to 'cli-session.c')
-rw-r--r-- | cli-session.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cli-session.c b/cli-session.c index ecefe46..a484bf7 100644 --- a/cli-session.c +++ b/cli-session.c @@ -70,11 +70,15 @@ static const packettype cli_packettypes[] = { {SSH_MSG_USERAUTH_BANNER, recv_msg_userauth_banner}, /* client */ {SSH_MSG_USERAUTH_SPECIFIC_60, recv_msg_userauth_specific_60}, /* client */ {SSH_MSG_GLOBAL_REQUEST, recv_msg_global_request_cli}, + {SSH_MSG_CHANNEL_SUCCESS, ignore_recv_response}, + {SSH_MSG_CHANNEL_FAILURE, ignore_recv_response}, #ifdef ENABLE_CLI_REMOTETCPFWD {SSH_MSG_REQUEST_SUCCESS, cli_recv_msg_request_success}, /* client */ {SSH_MSG_REQUEST_FAILURE, cli_recv_msg_request_failure}, /* client */ #else - {SSH_MSG_REQUEST_FAILURE, ignore_recv_msg_request_failure}, /* for keepalive */ + /* For keepalive */ + {SSH_MSG_REQUEST_SUCCESS, ignore_recv_response}, + {SSH_MSG_REQUEST_FAILURE, ignore_recv_response}, #endif {0, 0} /* End */ }; |