]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Fix an inverted comparison in rlogin.c which must surely have broken
authorSimon Tatham <anakin@pobox.com>
Tue, 24 Apr 2012 17:33:06 +0000 (17:33 +0000)
committerSimon Tatham <anakin@pobox.com>
Tue, 24 Apr 2012 17:33:06 +0000 (17:33 +0000)
logins completely, with or without a supplied username. Ahem.

[originally from svn r9471]

rlogin.c

index aa6b1d7dd7d28910d83133d2f8376d1b8bfe36a5..fecc9d4bcb1d4f52cc866b2b37473f14f285cc8d 100644 (file)
--- 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 {