Move an output newline to make username entry in Plink/SSH2 look
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 1 Nov 2002 12:53:45 +0000 (12:53 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 1 Nov 2002 12:53:45 +0000 (12:53 +0000)
more sensible.

git-svn-id: svn://svn.tartarus.org/sgt/putty@2168 cda61777-01e9-0310-a592-d414129be87e

ssh.c

diff --git a/ssh.c b/ssh.c
index 4083c8d..83f23f0 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -4347,8 +4347,8 @@ static void do_ssh2_authconn(Ssh ssh, unsigned char *in, int inlen, int ispkt)
                } while (ret == 0);
                if (ret < 0)
                    cleanup_exit(0);
+               c_write_str(ssh, "\r\n");
            }
-           c_write_str(ssh, "\r\n");
            s->username[strcspn(s->username, "\n\r")] = '\0';
        } else {
            char stuff[200];