diff options
author | Dennis Kaarsemaker <dennis@kaarsemaker.net> | 2017-02-15 18:05:50 +0100 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2017-02-19 11:39:22 -0800 |
commit | a24e37626c9cbc521f742b4d9b630b3cd5364792 (patch) | |
tree | 839a5a3181fbb5b56d4718050e8a19a5a9475d40 | |
parent | 5c719c57b751b9661174e45590c2c3295e636e3e (diff) |
Fix bug in handling multiple interactive queries
If repeated interaction is needed, check_auth_interactive_response returns an InteractiveQuery object. Unfortunately a bug caused it not to be recognized, causing autheintication to fail. This fixes said bug by properly looking at the type of the returned object.
-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 38b23729..cab27a88 100644 --- a/paramiko/auth_handler.py +++ b/paramiko/auth_handler.py @@ -597,7 +597,7 @@ class AuthHandler (object): for i in range(n): responses.append(m.get_text()) result = self.transport.server_object.check_auth_interactive_response(responses) - if isinstance(type(result), InteractiveQuery): + if isinstance(result, InteractiveQuery): # make interactive query instead of response self._interactive_query(result) return |