Simon points out that r5068 broke keyboard-interactive with multiple
[u/mdw/putty] / ssh.c
diff --git a/ssh.c b/ssh.c
index 25b7414..736c1fb 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -6461,7 +6461,8 @@ static void do_ssh2_authconn(Ssh ssh, unsigned char *in, int inlen,
                }
            }
 
-           if (!s->method && s->can_keyb_inter && !s->kbd_inter_refused) {
+           if (!s->method && s->can_keyb_inter && !s->kbd_inter_refused &&
+               !s->kbd_inter_running) {
                s->method = AUTH_KEYBOARD_INTERACTIVE;
                s->type = AUTH_TYPE_KEYBOARD_INTERACTIVE;