1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-13 09:08:06 -05:00

Fix an inverted comparison in rlogin.c which must surely have broken

logins completely, with or without a supplied username. Ahem.

[originally from svn r9471]
This commit is contained in:
Simon Tatham 2012-04-24 17:33:06 +00:00
parent 76a27757e6
commit 4318e3227f

View File

@ -237,7 +237,7 @@ static const char *rlogin_init(void *frontend_handle, void **backend_handle,
* in which case we prompt for it and may end up deferring doing
* anything else until the local prompt mechanism returns.
*/
if ((ruser = get_remote_username(conf)) == NULL) {
if ((ruser = get_remote_username(conf)) != NULL) {
rlogin_startup(rlogin, ruser);
sfree(ruser);
} else {