diff options
author | 2000-10-03 18:16:47 +0000 | |
---|---|---|
committer | 2000-10-03 18:16:47 +0000 | |
commit | abb2e660cd7f72e9234081d419d0606e5f8d1eab (patch) | |
tree | d63714ca2ff4fd7ba9b6c88f6b1b16f11adcf7e3 /usr.bin/ssh/ssh.c | |
parent | set bsize for hash to some reasonable value instead of (diff) | |
download | wireguard-openbsd-abb2e660cd7f72e9234081d419d0606e5f8d1eab.tar.xz wireguard-openbsd-abb2e660cd7f72e9234081d419d0606e5f8d1eab.zip |
do not resolve canonname, i have no idea why this was added oin ossh
Diffstat (limited to 'usr.bin/ssh/ssh.c')
-rw-r--r-- | usr.bin/ssh/ssh.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/usr.bin/ssh/ssh.c b/usr.bin/ssh/ssh.c index 1a7b0c96930..e2a399945aa 100644 --- a/usr.bin/ssh/ssh.c +++ b/usr.bin/ssh/ssh.c @@ -39,7 +39,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: ssh.c,v 1.66 2000/09/12 20:53:10 markus Exp $"); +RCSID("$OpenBSD: ssh.c,v 1.67 2000/10/03 18:16:47 markus Exp $"); #include <openssl/evp.h> #include <openssl/dsa.h> @@ -559,22 +559,6 @@ main(int ac, char **av) if (options.hostname != NULL) host = options.hostname; - /* Find canonic host name. */ - if (strchr(host, '.') == 0) { - struct addrinfo hints; - struct addrinfo *ai = NULL; - int errgai; - memset(&hints, 0, sizeof(hints)); - hints.ai_family = IPv4or6; - hints.ai_flags = AI_CANONNAME; - hints.ai_socktype = SOCK_STREAM; - errgai = getaddrinfo(host, NULL, &hints, &ai); - if (errgai == 0) { - if (ai->ai_canonname != NULL) - host = xstrdup(ai->ai_canonname); - freeaddrinfo(ai); - } - } /* Disable rhosts authentication if not running as root. */ if (original_effective_uid != 0 || !options.use_privileged_port) { options.rhosts_authentication = 0; |