summaryrefslogtreecommitdiffhomepage
path: root/common-session.c
diff options
context:
space:
mode:
Diffstat (limited to 'common-session.c')
-rw-r--r--common-session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common-session.c b/common-session.c
index 49dd8f8..998bf0e 100644
--- a/common-session.c
+++ b/common-session.c
@@ -434,7 +434,7 @@ static long select_timeout() {
if (KEX_REKEY_TIMEOUT > 0)
ret = MIN(KEX_REKEY_TIMEOUT, ret);
/* AUTH_TIMEOUT is only relevant before authdone */
- if (sess.authstate.authdone != 1 && AUTH_TIMEOUT > 0)
+ if (ses.authstate.authdone != 1 && AUTH_TIMEOUT > 0)
ret = MIN(AUTH_TIMEOUT, ret);
if (opts.keepalive_secs > 0)
ret = MIN(opts.keepalive_secs, ret);