diff options
Diffstat (limited to 'canohost.c')
-rw-r--r-- | canohost.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/canohost.c b/canohost.c index 35ae9bede..34b751a72 100644 --- a/canohost.c +++ b/canohost.c | |||
@@ -45,6 +45,9 @@ get_remote_hostname(int sock, int use_dns) | |||
45 | cleanup_exit(255); | 45 | cleanup_exit(255); |
46 | } | 46 | } |
47 | 47 | ||
48 | if (from.ss_family == AF_INET) | ||
49 | check_ip_options(sock, ntop); | ||
50 | |||
48 | ipv64_normalise_mapped(&from, &fromlen); | 51 | ipv64_normalise_mapped(&from, &fromlen); |
49 | 52 | ||
50 | if (from.ss_family == AF_INET6) | 53 | if (from.ss_family == AF_INET6) |
@@ -54,9 +57,6 @@ get_remote_hostname(int sock, int use_dns) | |||
54 | NULL, 0, NI_NUMERICHOST) != 0) | 57 | NULL, 0, NI_NUMERICHOST) != 0) |
55 | fatal("get_remote_hostname: getnameinfo NI_NUMERICHOST failed"); | 58 | fatal("get_remote_hostname: getnameinfo NI_NUMERICHOST failed"); |
56 | 59 | ||
57 | if (from.ss_family == AF_INET) | ||
58 | check_ip_options(sock, ntop); | ||
59 | |||
60 | if (!use_dns) | 60 | if (!use_dns) |
61 | return xstrdup(ntop); | 61 | return xstrdup(ntop); |
62 | 62 | ||