diff options
author | Darren Tucker <dtucker@cvs.openbsd.org> | 2015-04-10 05:16:51 +0000 |
---|---|---|
committer | Darren Tucker <dtucker@cvs.openbsd.org> | 2015-04-10 05:16:51 +0000 |
commit | d079c77a85fc6a58405babf993f3285dc0c1fb85 (patch) | |
tree | 7101059036e236c8ad3c6acab5b9b931dea26c86 /usr.bin/ssh/sshd.c | |
parent | 3522aa12b16911d75379cf8ce1f8d6dad15021b2 (diff) |
Don't send hostkey advertisments (hostkeys-00@openssh.com) to current
versions of Tera Term as they can't handle them. Newer versions should
be OK. Patch from Bryan Drewery and IWAMOTO Kouichi, ok djm@
Diffstat (limited to 'usr.bin/ssh/sshd.c')
-rw-r--r-- | usr.bin/ssh/sshd.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/ssh/sshd.c b/usr.bin/ssh/sshd.c index b30b74bcd56..008025f7968 100644 --- a/usr.bin/ssh/sshd.c +++ b/usr.bin/ssh/sshd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sshd.c,v 1.445 2015/03/31 22:55:24 djm Exp $ */ +/* $OpenBSD: sshd.c,v 1.446 2015/04/10 05:16:50 dtucker Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -891,6 +891,10 @@ notify_hostkeys(struct ssh *ssh) int i, nkeys, r; char *fp; + /* Some clients cannot cope with the hostkeys message, skip those. */ + if (datafellows & SSH_BUG_HOSTKEYS) + return; + if ((buf = sshbuf_new()) == NULL) fatal("%s: sshbuf_new", __func__); for (i = nkeys = 0; i < options.num_host_key_files; i++) { |