summaryrefslogtreecommitdiff
path: root/ssh.c
diff options
context:
space:
mode:
authorbeck@openbsd.org <beck@openbsd.org>2020-01-05 16:28:22 +0000
committerDamien Miller <djm@mindrot.org>2020-01-06 13:12:46 +1100
commit2ab335712d084d9ccaf3f53afc3fa9535329da87 (patch)
tree3aa48817f916a718ac54a8ce16de8cc66c3efcfd /ssh.c
parent69e44ba701b90b0f530d64c3fe4363ea86e50cd3 (diff)
upstream: fix CanonicalizeHostname, broken by rev 1.507
Issue noticed and reported by Pierre-Olivier Martel <pom@apple.com> ok dtucker@ markus@ djm@ OpenBSD-Commit-ID: 749f3168ec520609c35b0c4e1984e5fa47f16094
Diffstat (limited to 'ssh.c')
-rw-r--r--ssh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssh.c b/ssh.c
index 12760af29..947558d1c 100644
--- a/ssh.c
+++ b/ssh.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh.c,v 1.510 2019/12/21 02:19:13 djm Exp $ */ 1/* $OpenBSD: ssh.c,v 1.511 2020/01/05 16:28:22 beck 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
@@ -1392,7 +1392,7 @@ main(int ac, char **av)
1392 timeout_ms = options.connection_timeout * 1000; 1392 timeout_ms = options.connection_timeout * 1000;
1393 1393
1394 /* Open a connection to the remote host. */ 1394 /* Open a connection to the remote host. */
1395 if (ssh_connect(ssh, host_arg, host, addrs, &hostaddr, options.port, 1395 if (ssh_connect(ssh, host, host_arg, addrs, &hostaddr, options.port,
1396 options.address_family, options.connection_attempts, 1396 options.address_family, options.connection_attempts,
1397 &timeout_ms, options.tcp_keep_alive) != 0) 1397 &timeout_ms, options.tcp_keep_alive) != 0)
1398 exit(255); 1398 exit(255);