We do support name lookups for host and service in our replacement
authorJeremy Allison <jra@samba.org>
Wed, 24 Oct 2007 21:40:24 +0000 (14:40 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 24 Oct 2007 21:40:24 +0000 (14:40 -0700)
code - remove the restrictions from the original Postgres code.
Jeremy.
(This used to be commit bc9008aa1dcb66890795f0ff2d3046da7df867d9)

source3/lib/replace/getaddrinfo.c

index 519c30066b816cbce1dc70cccbc5668ee16a1268..0bff7467970329a64bf35941609ca519d5a0a2a9 100644 (file)
@@ -486,11 +486,6 @@ int getnameinfo(const struct sockaddr *sa, socklen_t salen,
                return EAI_FAIL;
        }
 
-       /* We don't support those. */
-       if ((node && !(flags & NI_NUMERICHOST))
-               || (service && !(flags & NI_NUMERICSERV)))
-               return EAI_FAIL;
-
        if (node) {
                return gethostnameinfo(sa, node, nodelen, flags);
        }