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:35:10 -0800 |
commit | bbe98132c7e16f51c44e65138584430238734372 (patch) | |
tree | 374043da441ed806741b3f594e7788c6f06080d0 | |
parent | 7a9d633486991b11e4c212e6937ceea42c1e539f (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 |