diff options
author | Matt Johnston <matt@ucc.asn.au> | 2014-03-13 23:50:09 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2014-03-13 23:50:09 +0800 |
commit | e767bbb41f277ebb8f477e5cda5b97a3a52b08a7 (patch) | |
tree | 79e85d770254e5a929aa6d3e09974cbf1fdd6d2e /common-kex.c | |
parent | 2b599df57abf70963706b62604ecc2c421b549da (diff) |
Add new monotonic_now() wrapper so that timeouts are unaffected by
system clock changes
Diffstat (limited to 'common-kex.c')
-rw-r--r-- | common-kex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common-kex.c b/common-kex.c index 10ea554..f5119d2 100644 --- a/common-kex.c +++ b/common-kex.c @@ -270,7 +270,7 @@ static void kexinitialise() { ses.kexstate.our_first_follows_matches = 0; - ses.kexstate.lastkextime = time(NULL); + ses.kexstate.lastkextime = monotonic_now(); } |