summaryrefslogtreecommitdiffhomepage
path: root/process-packet.c
diff options
context:
space:
mode:
authorjcmathews <jesselcmathews@yahoo.co.in>2020-05-25 18:32:59 +0530
committerGitHub <noreply@github.com>2020-05-25 21:02:59 +0800
commitfb9a78c3eea26ec29aa407adce1bbafeb9233387 (patch)
tree629f76c3ee49d6f0cc98345a2ba0ce0c25fc620c /process-packet.c
parent8f8a3dff705fad774a10864a2e3dbcfa9779ceff (diff)
Add files via upload (#90)
When SSHKeepAlive is enabled, dropbear idletimeout is not working as expected.
Diffstat (limited to 'process-packet.c')
-rw-r--r--process-packet.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/process-packet.c b/process-packet.c
index 4953cf2..c3f3a76 100644
--- a/process-packet.c
+++ b/process-packet.c
@@ -78,7 +78,9 @@ void process_packet() {
idle detection. This is slightly incorrect since a tcp forwarded
global request with failure won't trigger the idle timeout,
but that's probably acceptable */
- if (!(type == SSH_MSG_GLOBAL_REQUEST || type == SSH_MSG_REQUEST_FAILURE)) {
+ if (!(type == SSH_MSG_GLOBAL_REQUEST
+ || type == SSH_MSG_REQUEST_FAILURE
+ || type == SSH_MSG_CHANNEL_FAILURE)) {
ses.last_packet_time_idle = now;
}