X-Git-Url: http://andersk.mit.edu/gitweb/openssh.git/blobdiff_plain/b4d7deddbadf7e76e5f3b096f4f336e1c239a51f..88680c8b631a28fdbe1e6eb4e1c1eb91e13862e7:/canohost.c diff --git a/canohost.c b/canohost.c index 35ae9bed..34b751a7 100644 --- a/canohost.c +++ b/canohost.c @@ -45,6 +45,9 @@ get_remote_hostname(int sock, int use_dns) cleanup_exit(255); } + if (from.ss_family == AF_INET) + check_ip_options(sock, ntop); + ipv64_normalise_mapped(&from, &fromlen); if (from.ss_family == AF_INET6) @@ -54,9 +57,6 @@ get_remote_hostname(int sock, int use_dns) NULL, 0, NI_NUMERICHOST) != 0) fatal("get_remote_hostname: getnameinfo NI_NUMERICHOST failed"); - if (from.ss_family == AF_INET) - check_ip_options(sock, ntop); - if (!use_dns) return xstrdup(ntop);