diff common-kex.c @ 928:7cd89d4e0335

Add new monotonic_now() wrapper so that timeouts are unaffected by system clock changes
author Matt Johnston <matt@ucc.asn.au>
date Thu, 13 Mar 2014 23:50:09 +0800
parents 4a74c58e11fc
children ed85797bbc85
line wrap: on
line diff
--- a/common-kex.c	Thu Mar 13 23:08:47 2014 +0800
+++ b/common-kex.c	Thu Mar 13 23:50:09 2014 +0800
@@ -270,7 +270,7 @@
 
 	ses.kexstate.our_first_follows_matches = 0;
 
-	ses.kexstate.lastkextime = time(NULL);
+	ses.kexstate.lastkextime = monotonic_now();
 
 }