mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
ssh2userauth: fix sense of test for change_username!
How embarrassing: we were looping back round to prompt for a username again if s->change_username was *true*, but then the test at the top would only have reissued the prompt if it was *false*. So that configuration checkbox must have been broken for ages. It's a good job most SSH servers don't reward enabling it!
This commit is contained in:
parent
93f80836b4
commit
e0b811cc1f
@ -392,7 +392,7 @@ static void ssh2_userauth_process_queue(PacketProtocolLayer *ppl)
|
||||
/*
|
||||
* Get a username.
|
||||
*/
|
||||
if (s->got_username && s->change_username) {
|
||||
if (s->got_username && !s->change_username) {
|
||||
/*
|
||||
* We got a username last time round this loop, and
|
||||
* with change_username turned off we don't try to get
|
||||
|
Loading…
Reference in New Issue
Block a user