summaryrefslogtreecommitdiff
path: root/clientloop.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2020-01-26 00:14:45 +0000
committerDarren Tucker <dtucker@dtucker.net>2020-01-26 13:25:55 +1100
commit74dfc2c859c906eaab1f88a27fd883115ffb928f (patch)
tree52ac3b4098fcfb44be171af0099a4d74b38609b8 /clientloop.c
parentb59618246c332e251160be0f1e0e88a7d4e2b0ae (diff)
upstream: for UpdateHostKeys, don't report errors for unsupported
key types - just ignore them. spotted by and ok dtucker@ OpenBSD-Commit-ID: 91769e443f6197c983932fc8ae9d39948727d473
Diffstat (limited to 'clientloop.c')
-rw-r--r--clientloop.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/clientloop.c b/clientloop.c
index 0168d1b41..f02fc5811 100644
--- a/clientloop.c
+++ b/clientloop.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: clientloop.c,v 1.334 2020/01/26 00:13:20 djm Exp $ */ 1/* $OpenBSD: clientloop.c,v 1.335 2020/01/26 00:14:45 djm Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -2112,8 +2112,10 @@ client_input_hostkeys(struct ssh *ssh)
2112 goto out; 2112 goto out;
2113 } 2113 }
2114 if ((r = sshkey_from_blob(blob, len, &key)) != 0) { 2114 if ((r = sshkey_from_blob(blob, len, &key)) != 0) {
2115 error("%s: parse key: %s", __func__, ssh_err(r)); 2115 do_log2(r == SSH_ERR_KEY_TYPE_UNKNOWN ?
2116 goto out; 2116 SYSLOG_LEVEL_DEBUG1 : SYSLOG_LEVEL_ERROR,
2117 "%s: parse key: %s", __func__, ssh_err(r));
2118 continue;
2117 } 2119 }
2118 fp = sshkey_fingerprint(key, options.fingerprint_hash, 2120 fp = sshkey_fingerprint(key, options.fingerprint_hash,
2119 SSH_FP_DEFAULT); 2121 SSH_FP_DEFAULT);