summaryrefslogtreecommitdiffhomepage
path: root/svr-session.c
diff options
context:
space:
mode:
Diffstat (limited to 'svr-session.c')
-rw-r--r--svr-session.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/svr-session.c b/svr-session.c
index 3701597..18fab6b 100644
--- a/svr-session.c
+++ b/svr-session.c
@@ -77,8 +77,6 @@ static const struct ChanType *svr_chantypes[] = {
void svr_session(int sock, int childpipe,
char* remotehost, char *addrstring) {
- struct timeval timeout;
-
reseedrandom();
crypto_init();
@@ -91,11 +89,7 @@ void svr_session(int sock, int childpipe,
chaninitialise(svr_chantypes);
svr_chansessinitialise();
- if (gettimeofday(&timeout, 0) < 0) {
- dropbear_exit("Error getting time");
- }
-
- ses.connecttimeout = timeout.tv_sec + AUTH_TIMEOUT;
+ ses.connect_time = time(NULL);
/* set up messages etc */
ses.remoteclosed = svr_remoteclosed;