diff --git a/ssh2userauth.c b/ssh2userauth.c index 01eaae60..24b237c2 100644 --- a/ssh2userauth.c +++ b/ssh2userauth.c @@ -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