Fix stupid typo that probably utterly broke SSH-1 support, and caused compiles
authorben <ben@cda61777-01e9-0310-a592-d414129be87e>
Sat, 30 Apr 2005 14:26:46 +0000 (14:26 +0000)
committerben <ben@cda61777-01e9-0310-a592-d414129be87e>
Sat, 30 Apr 2005 14:26:46 +0000 (14:26 +0000)
with GCC to fail.  Not sure how it survived long enough to test, really.

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

ssh.c

diff --git a/ssh.c b/ssh.c
index bd8db8d..d20b130 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -2410,7 +2410,7 @@ static int do_ssh_init(Ssh ssh, unsigned char c)
                   strcspn(verstring, "\015\012"), verstring);
        sk_write(ssh->s, verstring, strlen(verstring));
         sfree(verstring);
-       if (ssh->version = 2)
+       if (ssh->version == 2)
            do_ssh2_transport(ssh, NULL, -1, NULL);
     }