]> andersk Git - openssh.git/blobdiff - canohost.c
- (djm) Reorder IP options check so that it isn't broken by
[openssh.git] / canohost.c
index 35ae9bedecc2728f647b8df2527cbe504fd0a590..34b751a72c09dd645b2d6f5f1199157872ef264b 100644 (file)
@@ -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);
 
This page took 0.034927 seconds and 4 git commands to generate.