diff process-packet.c @ 593:ea103e4476ce

merge of '8849ec659cb45b924158cc3322390a1d3d48daef' and 'a46ca9204de0df58d8701df0d79b6b8ec601b9ce'
author Matt Johnston <matt@ucc.asn.au>
date Wed, 23 Feb 2011 15:10:31 +0000
parents afb089e70892
children a98a2138364a
line wrap: on
line diff
--- a/process-packet.c	Wed Jul 21 14:07:13 2010 +0000
+++ b/process-packet.c	Wed Feb 23 15:10:31 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) {