summaryrefslogtreecommitdiff
path: root/svr-session.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2014-08-19 23:08:56 +0800
committerMatt Johnston <matt@ucc.asn.au>2014-08-19 23:08:56 +0800
commit57e34db93351e2bb3be01f8571d2f4a49f8fdc38 (patch)
treeda758f18121fa30e487f3a9bb7f1fa592ef937a6 /svr-session.c
parent979e5c1d0382a1fe058ef917e885a004f500c465 (diff)
downloaddropbear-57e34db93351e2bb3be01f8571d2f4a49f8fdc38.tar.gz
Make keepalive handling more robust, this should now match what OpenSSH does
Diffstat (limited to 'svr-session.c')
-rw-r--r--svr-session.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/svr-session.c b/svr-session.c
index 74a7b16..343cb30 100644
--- a/svr-session.c
+++ b/svr-session.c
@@ -58,7 +58,10 @@ static const packettype svr_packettypes[] = {
{SSH_MSG_CHANNEL_OPEN, recv_msg_channel_open},
{SSH_MSG_CHANNEL_EOF, recv_msg_channel_eof},
{SSH_MSG_CHANNEL_CLOSE, recv_msg_channel_close},
- {SSH_MSG_REQUEST_FAILURE, ignore_recv_msg_request_failure}, /* for keepalive */
+ {SSH_MSG_CHANNEL_SUCCESS, ignore_recv_response},
+ {SSH_MSG_CHANNEL_FAILURE, ignore_recv_response},
+ {SSH_MSG_REQUEST_FAILURE, ignore_recv_response}, /* for keepalive */
+ {SSH_MSG_REQUEST_SUCCESS, ignore_recv_response}, /* client */
#ifdef USING_LISTENERS
{SSH_MSG_CHANNEL_OPEN_CONFIRMATION, recv_msg_channel_open_confirmation},
{SSH_MSG_CHANNEL_OPEN_FAILURE, recv_msg_channel_open_failure},