Mercurial > dropbear
diff svr-session.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 | 5bfce5dcd461 |
children | a0819ecfee0b |
line wrap: on
line diff
--- a/svr-session.c Thu Mar 13 23:08:47 2014 +0800 +++ b/svr-session.c Thu Mar 13 23:50:09 2014 +0800 @@ -95,7 +95,7 @@ chaninitialise(svr_chantypes); svr_chansessinitialise(); - ses.connect_time = time(NULL); + ses.connect_time = monotonic_now(); /* for logging the remote address */ get_socket_address(ses.sock_in, NULL, NULL, &host, &port, 0);