summaryrefslogtreecommitdiffhomepage
path: root/process-packet.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2011-02-23 15:10:28 +0000
committerMatt Johnston <matt@ucc.asn.au>2011-02-23 15:10:28 +0000
commit642920585ff9337c72a2e9147966830b85913bd8 (patch)
treef900d71d7fe8c918135597f479d69f82f34db3d6 /process-packet.c
parent66371f9920248eb444fbf5e254fcb261589dbb6d (diff)
Don't reset last_packet_time when we're transmitting SSH_MSG_IGNORE packets
(from keepalives) --HG-- extra : convert_revision : a46ca9204de0df58d8701df0d79b6b8ec601b9ce
Diffstat (limited to 'process-packet.c')
-rw-r--r--process-packet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/process-packet.c b/process-packet.c
index fe4a543..b5125ba 100644
--- a/process-packet.c
+++ b/process-packet.c
@@ -52,6 +52,8 @@ void process_packet() {
ses.lastpacket = type;
+ ses.last_packet_time = time(NULL);
+
/* These packets we can receive at any time */
switch(type) {
@@ -70,8 +72,6 @@ void process_packet() {
dropbear_close("Disconnect received");
}
- ses.last_packet_time = time(NULL);
-
/* This applies for KEX, where the spec says the next packet MUST be
* NEWKEYS */
if (ses.requirenext != 0) {