]> granicus.if.org Git - postgresql/commitdiff
getnameinfo_unix has to be taught not to insist on NI_NUMERIC flags, too.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 5 Oct 2012 02:53:53 +0000 (22:53 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 5 Oct 2012 02:54:18 +0000 (22:54 -0400)
Per testing of previous patch.

src/backend/libpq/ip.c

index 550e11b68cf99683f33c9bb9dba1ab10b634c3c8..db3a5252efd4e21eb59a0168c1dfa75577c9d179 100644 (file)
@@ -247,11 +247,6 @@ getnameinfo_unix(const struct sockaddr_un * sa, int salen,
                (node == NULL && service == NULL))
                return EAI_FAIL;
 
-       /* We don't support those. */
-       if ((node && !(flags & NI_NUMERICHOST))
-               || (service && !(flags & NI_NUMERICSERV)))
-               return EAI_FAIL;
-
        if (node)
        {
                ret = snprintf(node, nodelen, "%s", "[local]");