summaryrefslogtreecommitdiff
path: root/paramiko/auth_handler.py
diff options
context:
space:
mode:
authorTim Savage <tim@savage.company>2016-12-22 19:36:09 +1100
committerTim Savage <tim@savage.company>2016-12-22 19:36:09 +1100
commit5e77640099cfa3d961e25f518338e974cf28f27d (patch)
tree26d49050f2cc864581018206ca6e905cf17e6c95 /paramiko/auth_handler.py
parent0fd54bb9813c2a62dcea7351e05ce780127ccdbe (diff)
downloadparamiko-5e77640099cfa3d961e25f518338e974cf28f27d.tar.gz
Incorrect comparison, should be <=
Diffstat (limited to 'paramiko/auth_handler.py')
-rw-r--r--paramiko/auth_handler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/auth_handler.py b/paramiko/auth_handler.py
index 7a09d8a2..d36e5de3 100644
--- a/paramiko/auth_handler.py
+++ b/paramiko/auth_handler.py
@@ -199,7 +199,7 @@ class AuthHandler (object):
raise e
if event.is_set():
break
- elif max_ts is not None and max_ts >= time.time():
+ if max_ts is not None and max_ts <= time.time():
raise AuthenticationException('Authentication timeout.')
if not self.is_authenticated():