diff process-packet.c @ 592:afb089e70892

Don't reset last_packet_time when we're transmitting SSH_MSG_IGNORE packets (from keepalives)
author Matt Johnston <matt@ucc.asn.au>
date Wed, 23 Feb 2011 15:10:28 +0000
parents a3748e54273c
children a98a2138364a
line wrap: on
line diff
--- a/process-packet.c	Wed Jul 21 13:53:29 2010 +0000
+++ b/process-packet.c	Wed Feb 23 15:10:28 2011 +0000
@@ -52,6 +52,8 @@
 
 	ses.lastpacket = type;
 
+    ses.last_packet_time = time(NULL);
+
 	/* These packets we can receive at any time */
 	switch(type) {
 
@@ -70,8 +72,6 @@
 			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) {