when hostname canonicalisation is enabled, try to parse hostnames
authordjm <djm@openbsd.org>
Fri, 16 Jan 2015 07:19:48 +0000 (07:19 +0000)
committerdjm <djm@openbsd.org>
Fri, 16 Jan 2015 07:19:48 +0000 (07:19 +0000)
commitb8650b2bd0639221a4656d5de5bc398996991f16
treee16413120b912ac2e77f92cb70dc373426ec0a7e
parentc907b12b1dd3c4a5d136da89e3a47dd47dfe39b4
when hostname canonicalisation is enabled, try to parse hostnames
as addresses before looking them up for canonicalisation.
fixes bz#2074 and avoids needless DNS lookups in some cases;
ok markus
usr.bin/ssh/ssh.c