summaryrefslogtreecommitdiffhomepage
path: root/common-session.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2014-07-09 22:02:22 +0800
committerMatt Johnston <matt@ucc.asn.au>2014-07-09 22:02:22 +0800
commitf1826ea389bfddb6a0d52314d01e3d8b8f46eec8 (patch)
tree20b108d78b33ca06d3b025dab9e398ebe9849cb0 /common-session.c
parentc884e5000e881f45e5c2328e219eebd07b0560ca (diff)
Fix auth timeout regression
Diffstat (limited to 'common-session.c')
-rw-r--r--common-session.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/common-session.c b/common-session.c
index 90129b4..a90673f 100644
--- a/common-session.c
+++ b/common-session.c
@@ -60,7 +60,6 @@ void common_session_init(int sock_in, int sock_out) {
ses.maxfd = MAX(sock_in, sock_out);
now = monotonic_now();
- ses.connect_time = now;
ses.last_packet_time_keepalive_recv = now;
ses.last_packet_time_idle = now;
ses.last_packet_time_any_sent = 0;
@@ -415,10 +414,6 @@ static void checktimeouts() {
time_t now;
now = monotonic_now();
- if (now - ses.connect_time >= AUTH_TIMEOUT) {
- dropbear_close("Timeout before auth");
- }
-
/* we can't rekey if we haven't done remote ident exchange yet */
if (ses.remoteident == NULL) {
return;