X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/b61f81bc4c102d06f13fd68e4a73ab8fdfdb3cf5..b12f74a89ae8e4381fa7a620c3641a3b5ddfe983:/rlogin.c diff --git a/rlogin.c b/rlogin.c index aa6b1d7d..fecc9d4b 100644 --- a/rlogin.c +++ b/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 * 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 {