From 4318e3227fbb3a28125b1c30175c4869b97654f3 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Tue, 24 Apr 2012 17:33:06 +0000 Subject: [PATCH] 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] --- rlogin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {