diff options
author | djm@openbsd.org <djm@openbsd.org> | 2015-09-04 04:56:09 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2015-09-04 16:57:03 +1000 |
commit | a85768a9321d74b41219eeb3c9be9f1702cbf6a5 (patch) | |
tree | 5443c4d6b54c5376f1caad3d017c563178de16ad /ssh.c | |
parent | 46152af8d27aa34d5d26ed1c371dc8aa142d4730 (diff) |
upstream commit
add a debug2() right before DNS resolution; it's a place
where ssh could previously silently hang for a while. bz#2433
Upstream-ID: 52a1a3e0748db66518e7598352c427145692a6a0
Diffstat (limited to 'ssh.c')
-rw-r--r-- | ssh.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh.c,v 1.420 2015/07/30 00:01:34 djm Exp $ */ | 1 | /* $OpenBSD: ssh.c,v 1.421 2015/09/04 04:56:09 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 |
@@ -1184,6 +1184,7 @@ main(int ac, char **av) | |||
1184 | * have yet resolved the hostname. Do so now. | 1184 | * have yet resolved the hostname. Do so now. |
1185 | */ | 1185 | */ |
1186 | if (addrs == NULL && options.proxy_command == NULL) { | 1186 | if (addrs == NULL && options.proxy_command == NULL) { |
1187 | debug2("resolving \"%s\" port %d", host, options.port); | ||
1187 | if ((addrs = resolve_host(host, options.port, 1, | 1188 | if ((addrs = resolve_host(host, options.port, 1, |
1188 | cname, sizeof(cname))) == NULL) | 1189 | cname, sizeof(cname))) == NULL) |
1189 | cleanup_exit(255); /* resolve_host logs the error */ | 1190 | cleanup_exit(255); /* resolve_host logs the error */ |