summaryrefslogtreecommitdiff
path: root/source3/lib/replace/getaddrinfo.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-10-24 14:40:24 -0700
committerJeremy Allison <jra@samba.org>2007-10-24 14:40:24 -0700
commit325f3a0be21058b1c2e350fab6bd114baecc1288 (patch)
treef5bf266eb1d9e3cb2e397516662bce6079f9057b /source3/lib/replace/getaddrinfo.c
parentf88b7a076be74a29a3bf876b4e2705f4a1ecf42b (diff)
downloadsamba-325f3a0be21058b1c2e350fab6bd114baecc1288.tar.gz
samba-325f3a0be21058b1c2e350fab6bd114baecc1288.tar.bz2
samba-325f3a0be21058b1c2e350fab6bd114baecc1288.zip
We do support name lookups for host and service in our replacement
code - remove the restrictions from the original Postgres code. Jeremy. (This used to be commit bc9008aa1dcb66890795f0ff2d3046da7df867d9)
Diffstat (limited to 'source3/lib/replace/getaddrinfo.c')
-rw-r--r--source3/lib/replace/getaddrinfo.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/source3/lib/replace/getaddrinfo.c b/source3/lib/replace/getaddrinfo.c
index 519c30066b..0bff746797 100644
--- a/source3/lib/replace/getaddrinfo.c
+++ b/source3/lib/replace/getaddrinfo.c
@@ -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);
}