projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Handle more gracefully the possibility of a keyboard-interactive
[u/mdw/putty]
/
unix
/
uxcons.c
diff --git
a/unix/uxcons.c
b/unix/uxcons.c
index
f147b35
..
2021f40
100644
(file)
--- 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;
/*