summaryrefslogtreecommitdiff
path: root/canohost.c
diff options
context:
space:
mode:
Diffstat (limited to 'canohost.c')
-rw-r--r--canohost.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/canohost.c b/canohost.c
index f5145922e..a0067afc1 100644
--- a/canohost.c
+++ b/canohost.c
@@ -44,6 +44,9 @@ get_remote_hostname(int socket, int use_dns)
44 cleanup_exit(255); 44 cleanup_exit(255);
45 } 45 }
46 46
47 if (from.ss_family == AF_INET)
48 check_ip_options(socket, ntop);
49
47 ipv64_normalise_mapped(&from, &fromlen); 50 ipv64_normalise_mapped(&from, &fromlen);
48 51
49 if (from.ss_family == AF_INET6) 52 if (from.ss_family == AF_INET6)
@@ -56,9 +59,6 @@ get_remote_hostname(int socket, int use_dns)
56 if (!use_dns) 59 if (!use_dns)
57 return xstrdup(ntop); 60 return xstrdup(ntop);
58 61
59 if (from.ss_family == AF_INET)
60 check_ip_options(socket, ntop);
61
62 debug3("Trying to reverse map address %.100s.", ntop); 62 debug3("Trying to reverse map address %.100s.", ntop);
63 /* Map the IP address to a host name. */ 63 /* Map the IP address to a host name. */
64 if (getnameinfo((struct sockaddr *)&from, fromlen, name, sizeof(name), 64 if (getnameinfo((struct sockaddr *)&from, fromlen, name, sizeof(name),