mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-14 17:48:05 -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:
parent
76a27757e6
commit
4318e3227f
2
rlogin.c
2
rlogin.c
@ -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
|
* in which case we prompt for it and may end up deferring doing
|
||||||
* anything else until the local prompt mechanism returns.
|
* 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);
|
rlogin_startup(rlogin, ruser);
|
||||||
sfree(ruser);
|
sfree(ruser);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user