diff options
Diffstat (limited to 'ssh.c')
-rw-r--r-- | ssh.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh.c,v 1.492 2018/09/20 03:31:49 djm Exp $ */ | 1 | /* $OpenBSD: ssh.c,v 1.493 2018/09/21 03:11:36 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 |
@@ -1137,10 +1137,9 @@ main(int ac, char **av) | |||
1137 | if (addrs == NULL && options.num_permitted_cnames != 0 && (direct || | 1137 | if (addrs == NULL && options.num_permitted_cnames != 0 && (direct || |
1138 | options.canonicalize_hostname == SSH_CANONICALISE_ALWAYS)) { | 1138 | options.canonicalize_hostname == SSH_CANONICALISE_ALWAYS)) { |
1139 | if ((addrs = resolve_host(host, options.port, | 1139 | if ((addrs = resolve_host(host, options.port, |
1140 | option_clear_or_none(options.proxy_command), | 1140 | direct, cname, sizeof(cname))) == NULL) { |
1141 | cname, sizeof(cname))) == NULL) { | ||
1142 | /* Don't fatal proxied host names not in the DNS */ | 1141 | /* Don't fatal proxied host names not in the DNS */ |
1143 | if (option_clear_or_none(options.proxy_command)) | 1142 | if (direct) |
1144 | cleanup_exit(255); /* logged in resolve_host */ | 1143 | cleanup_exit(255); /* logged in resolve_host */ |
1145 | } else | 1144 | } else |
1146 | check_follow_cname(direct, &host, cname); | 1145 | check_follow_cname(direct, &host, cname); |