summaryrefslogtreecommitdiffstats
path: root/sshconnect.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2020-11-22 23:37:11 +0100
committerDamien Miller <djm@mindrot.org>2020-11-27 01:50:30 +0100
commit9b9465ea856e15b9e9890b4ecb4110d7106e7766 (patch)
treec1800f3b321f03acf8c02f272dca8a78d62fff77 /sshconnect.c
parentUse "=" not "==" in string test. (diff)
downloadopenssh-9b9465ea856e15b9e9890b4ecb4110d7106e7766.tar.xz
openssh-9b9465ea856e15b9e9890b4ecb4110d7106e7766.zip
upstream: when mentioning that the host key has changed, don't
report the type because it is ambiguous as to whether it referred to the known or new host key. bz3216; ok dtucker@ OpenBSD-Commit-ID: 2d5ce4a83dbcf44e340a572e361decad8aab7bad
Diffstat (limited to '')
-rw-r--r--sshconnect.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sshconnect.c b/sshconnect.c
index 1abe710c1..dfee55a85 100644
--- a/sshconnect.c
+++ b/sshconnect.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshconnect.c,v 1.343 2020/11/20 02:14:16 dtucker Exp $ */
+/* $OpenBSD: sshconnect.c,v 1.344 2020/11/22 22:37:11 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -1182,8 +1182,8 @@ check_host_key(char *hostname, struct sockaddr *hostaddr, u_short port,
*/
if (options.strict_host_key_checking !=
SSH_STRICT_HOSTKEY_OFF) {
- error("%s host key for %.200s has changed and you have "
- "requested strict checking.", type, host);
+ error("Host key for %.200s has changed and you have "
+ "requested strict checking.", host);
goto fail;
}