summaryrefslogtreecommitdiff
path: root/ssh.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssh.c')
-rw-r--r--ssh.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/ssh.c b/ssh.c
index d369b68e9..35fc7ddf9 100644
--- a/ssh.c
+++ b/ssh.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh.c,v 1.402 2014/04/29 18:01:49 markus Exp $ */ 1/* $OpenBSD: ssh.c,v 1.403 2014/06/24 02:19:48 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
@@ -930,10 +930,14 @@ main(int ac, char **av)
930 if (addrs == NULL && options.num_permitted_cnames != 0 && 930 if (addrs == NULL && options.num_permitted_cnames != 0 &&
931 (option_clear_or_none(options.proxy_command) || 931 (option_clear_or_none(options.proxy_command) ||
932 options.canonicalize_hostname == SSH_CANONICALISE_ALWAYS)) { 932 options.canonicalize_hostname == SSH_CANONICALISE_ALWAYS)) {
933 if ((addrs = resolve_host(host, options.port, 1, 933 if ((addrs = resolve_host(host, options.port,
934 cname, sizeof(cname))) == NULL) 934 option_clear_or_none(options.proxy_command),
935 cleanup_exit(255); /* resolve_host logs the error */ 935 cname, sizeof(cname))) == NULL) {
936 check_follow_cname(&host, cname); 936 /* Don't fatal proxied host names not in the DNS */
937 if (option_clear_or_none(options.proxy_command))
938 cleanup_exit(255); /* logged in resolve_host */
939 } else
940 check_follow_cname(&host, cname);
937 } 941 }
938 942
939 /* 943 /*