summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-10-25 06:56:27 +0200
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:43:29 +0100
commit79affaf37a29d6c9c30cc7674cfad97e67bc1867 (patch)
treed8833a85f25f8650d2357db9983c93be3dac53d2 /source4/lib
parent88f6c5a1d2c337ffe7505e20b96a6b47dab1c063 (diff)
downloadsamba-79affaf37a29d6c9c30cc7674cfad97e67bc1867.tar.gz
samba-79affaf37a29d6c9c30cc7674cfad97e67bc1867.tar.bz2
samba-79affaf37a29d6c9c30cc7674cfad97e67bc1867.zip
r25725: merge commit bc9008aa1dcb66890795f0ff2d3046da7df867d9 from v3-2-test:
Author: Jeremy Allison <jra@samba.org> AuthorDate: Wed Oct 24 14:40:24 2007 -0700 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 25a892f2ad1b281869779686ca23f2ed29b46a5c)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/replace/getaddrinfo.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/source4/lib/replace/getaddrinfo.c b/source4/lib/replace/getaddrinfo.c
index 3cc1214b0e..063bacd026 100644
--- a/source4/lib/replace/getaddrinfo.c
+++ b/source4/lib/replace/getaddrinfo.c
@@ -486,11 +486,6 @@ int rep_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);
}