summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/sshconnect.c
diff options
context:
space:
mode:
authoritojun <itojun@openbsd.org>2001-02-08 10:47:04 +0000
committeritojun <itojun@openbsd.org>2001-02-08 10:47:04 +0000
commit1a6bf8a1258844efa00b671e26849ed03deb9931 (patch)
tree1b796c587be23572949f91d3bc64fe93717f6969 /usr.bin/ssh/sshconnect.c
parentpull latest kame tree. ndp -n -a printing is now prettier with long (diff)
downloadwireguard-openbsd-1a6bf8a1258844efa00b671e26849ed03deb9931.tar.xz
wireguard-openbsd-1a6bf8a1258844efa00b671e26849ed03deb9931.zip
%.30s is too short for IPv6 numeric address. use %.128s for now. markus ok
Diffstat (limited to 'usr.bin/ssh/sshconnect.c')
-rw-r--r--usr.bin/ssh/sshconnect.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/ssh/sshconnect.c b/usr.bin/ssh/sshconnect.c
index 17064326302..3b9dc13a81b 100644
--- a/usr.bin/ssh/sshconnect.c
+++ b/usr.bin/ssh/sshconnect.c
@@ -13,7 +13,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: sshconnect.c,v 1.93 2001/02/04 15:32:26 stevesk Exp $");
+RCSID("$OpenBSD: sshconnect.c,v 1.94 2001/02/08 10:47:04 itojun Exp $");
#include <openssl/bn.h>
@@ -584,10 +584,10 @@ check_host_key(char *host, struct sockaddr *hostaddr, Key *host_key,
debug("Found key in %s:%d", host_file, host_line);
if (options.check_host_ip && ip_status == HOST_NEW) {
if (!add_host_to_hostfile(user_hostfile, ip, host_key))
- log("Failed to add the %s host key for IP address '%.30s' to the list of known hosts (%.30s).",
+ log("Failed to add the %s host key for IP address '%.128s' to the list of known hosts (%.30s).",
type, ip, user_hostfile);
else
- log("Warning: Permanently added the %s host key for IP address '%.30s' to the list of known hosts.",
+ log("Warning: Permanently added the %s host key for IP address '%.128s' to the list of known hosts.",
type, ip);
}
break;
@@ -697,7 +697,7 @@ check_host_key(char *host, struct sockaddr *hostaddr, Key *host_key,
if (options.check_host_ip && host_status != HOST_CHANGED &&
ip_status == HOST_CHANGED) {
log("Warning: the %s host key for '%.200s' "
- "differs from the key for the IP address '%.30s'",
+ "differs from the key for the IP address '%.128s'",
type, host, ip);
if (host_status == HOST_OK)
log("Matching host key in %s:%d", host_file, host_line);