1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

We do support name lookups for host and service in our replacement

code - remove the restrictions from the original Postgres code.
Jeremy.
This commit is contained in:
Jeremy Allison 2007-10-24 14:40:24 -07:00
parent 98e154c312
commit bc9008aa1d

View 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);
}