mirror of
https://github.com/samba-team/samba.git
synced 2025-09-23 01:44:20 +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:
@@ -486,11 +486,6 @@ int getnameinfo(const struct sockaddr *sa, socklen_t salen,
|
|||||||
return EAI_FAIL;
|
return EAI_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* We don't support those. */
|
|
||||||
if ((node && !(flags & NI_NUMERICHOST))
|
|
||||||
|| (service && !(flags & NI_NUMERICSERV)))
|
|
||||||
return EAI_FAIL;
|
|
||||||
|
|
||||||
if (node) {
|
if (node) {
|
||||||
return gethostnameinfo(sa, node, nodelen, flags);
|
return gethostnameinfo(sa, node, nodelen, flags);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user