diff options
author | Tim Savage <tim@savage.company> | 2016-12-22 19:36:09 +1100 |
---|---|---|
committer | Tim Savage <tim@savage.company> | 2016-12-22 19:36:09 +1100 |
commit | 5e77640099cfa3d961e25f518338e974cf28f27d (patch) | |
tree | 26d49050f2cc864581018206ca6e905cf17e6c95 | |
parent | 0fd54bb9813c2a62dcea7351e05ce780127ccdbe (diff) |
Incorrect comparison, should be <=
-rw-r--r-- | paramiko/auth_handler.py | 2 |
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(): |