X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=ssh.c;h=7cc9d20e2d176c9f4e89aca9165f9574cad74529;hb=4abd468e14d110f2085f7a693687a9c19e1d47e1;hp=a3ac60b4d61c1ed83bc56b7b2ca651b6b11db057;hpb=6e00685af02be0f4f7d24c8d294f3c96d6a43f8e;p=PuTTY.git diff --git a/ssh.c b/ssh.c index a3ac60b4..7cc9d20e 100644 --- a/ssh.c +++ b/ssh.c @@ -1773,7 +1773,7 @@ static int do_ssh_init(unsigned char c) /* Anything strictly below "2.0" means protocol 1 is supported. */ proto1 = ssh_versioncmp(version, "2.0") < 0; /* Anything greater or equal to "1.99" means protocol 2 is supported. */ - proto2 = ssh_versioncmp(version, "1.99") > 0; + proto2 = ssh_versioncmp(version, "1.99") >= 0; if (cfg.sshprot == 0 && !proto1) { bombout(("SSH protocol version 1 required by user but not provided by server")); @@ -1784,7 +1784,7 @@ static int do_ssh_init(unsigned char c) crReturn(0); } - if (proto2 && (cfg.sshprot == 2 || !proto1)) { + if (proto2 && (cfg.sshprot >= 2 || !proto1)) { /* * Use v2 protocol. */