expected, in case anyone really wants to use one
git-svn-id: svn://svn.tartarus.org/sgt/putty@1596
cda61777-01e9-0310-a592-
d414129be87e
static int we_are_in;
static int num_prompts, echo;
static char username[100];
static int we_are_in;
static int num_prompts, echo;
static char username[100];
+ static int got_username;
static char pwprompt[200];
static char password[100];
static void *publickey_blob;
static char pwprompt[200];
static char password[100];
static void *publickey_blob;
* retype it!
*/
username[0] = '\0';
* retype it!
*/
username[0] = '\0';
do {
static int pos;
static char c;
do {
static int pos;
static char c;
* Get a username.
*/
pos = 0;
* Get a username.
*/
pos = 0;
- if (*username && !cfg.change_username) {
+ if (got_username && !cfg.change_username) {
/*
* We got a username last time round this loop, and
* with change_username turned off we don't try to get
/*
* We got a username last time round this loop, and
* with change_username turned off we don't try to get
/*
* Send an authentication request using method "none": (a)
/*
* Send an authentication request using method "none": (a)