X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/d36df6852e9caa3e261c77dc4623d25b6299c490..f03bd6da7b947c872e9d829e8d84fc97e04cc4f9:/unix/uxcons.c diff --git a/unix/uxcons.c b/unix/uxcons.c index f147b35b..2021f40e 100644 --- a/unix/uxcons.c +++ b/unix/uxcons.c @@ -344,7 +344,7 @@ int console_get_userpass_input(prompts_t *p, unsigned char *in, int inlen) memset(p->prompts[i]->result, 0, p->prompts[i]->result_len); } - if (console_batch_mode) + if (p->n_prompts && console_batch_mode) return 0; /*