X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/d36df6852e9caa3e261c77dc4623d25b6299c490..c44e5afc4f2ab0d9e0c11a1f2ccd68e97b482230:/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; /*