diff options
author | djm <djm> | 2004-03-31 05:17:54 +0000 |
---|---|---|
committer | djm <djm> | 2004-03-31 05:17:54 +0000 |
commit | f41b3966fb493d9cf29da3678effd8a26c809bdf (patch) | |
tree | d3bcc5e8a220821d4caeb7df08ea2a406b5ebf83 /canohost.c | |
parent | e22c659e70e7e6c6355a976339cc2c72c09bc1a7 (diff) | |
download | openssh-f41b3966fb493d9cf29da3678effd8a26c809bdf.tar.gz |
- (djm) Bug #825: Fix ip_options_check() for mapped IPv4/IPv6 connection;
with & ok dtucker@
Diffstat (limited to 'canohost.c')
-rw-r--r-- | canohost.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -44,6 +44,9 @@ get_remote_hostname(int socket, int use_dns) cleanup_exit(255); } + if (from.ss_family == AF_INET) + check_ip_options(socket, ntop); + ipv64_normalise_mapped(&from, &fromlen); if (from.ss_family == AF_INET6) @@ -56,9 +59,6 @@ get_remote_hostname(int socket, int use_dns) if (!use_dns) return xstrdup(ntop); - if (from.ss_family == AF_INET) - check_ip_options(socket, ntop); - debug3("Trying to reverse map address %.100s.", ntop); /* Map the IP address to a host name. */ if (getnameinfo((struct sockaddr *)&from, fromlen, name, sizeof(name), |