X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=rlogin.c;h=fecc9d4bcb1d4f52cc866b2b37473f14f285cc8d;hb=3e22c99c9a3c28e042f2dc3a50fadf95e7c277e7;hp=aa6b1d7dd7d28910d83133d2f8376d1b8bfe36a5;hpb=da66c0656a6622a23cfdd8316e66681e487b87f1;p=PuTTY.git 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 {