diff --git a/ssh.c b/ssh.c index bd8db8da..d20b1305 100644 --- 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); }