summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2000-10-13 18:34:47 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2000-10-13 18:34:47 +0000
commit4c1fa64bc897fe955e480fc0e753509114f9e7d1 (patch)
tree86303b4e2f2526b4385a2162f9a8eee9e95f64e6 /usr.bin
parent3d1dbd2137bd9c67b987241d5bc8c7b500032ed6 (diff)
Kludge for F-Secure Macintosh < 1.0.2; appro@fy.chalmers.se
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/sshd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/ssh/sshd.c b/usr.bin/ssh/sshd.c
index 54a5273dd92..f0110b2146c 100644
--- a/usr.bin/ssh/sshd.c
+++ b/usr.bin/ssh/sshd.c
@@ -40,7 +40,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: sshd.c,v 1.131 2000/10/12 09:59:20 markus Exp $");
+RCSID("$OpenBSD: sshd.c,v 1.132 2000/10/13 18:34:46 markus Exp $");
#include "xmalloc.h"
#include "rsa.h"
@@ -331,6 +331,10 @@ sshd_exchange_identification(int sock_in, int sock_out)
if (buf[i] == '\r') {
buf[i] = '\n';
buf[i + 1] = 0;
+ /* Kludge for F-Secure Macintosh < 1.0.2 */
+ if (i == 12 &&
+ strncmp(buf, "SSH-1.5-W1.0", 12) == 0)
+ break;
continue;
}
if (buf[i] == '\n') {