]> asedeno.scripts.mit.edu Git - PuTTY_svn.git/commitdiff
Move an output newline to make username entry in Plink/SSH2 look
authorSimon Tatham <anakin@pobox.com>
Fri, 1 Nov 2002 12:53:45 +0000 (12:53 +0000)
committerSimon Tatham <anakin@pobox.com>
Fri, 1 Nov 2002 12:53:45 +0000 (12:53 +0000)
more sensible.

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

ssh.c

diff --git a/ssh.c b/ssh.c
index 4083c8dab516e72b2ec997bbf55d57cf8faa7988..83f23f03fb5161f73f101b57a0035a5e34b3041d 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];