From 79affaf37a29d6c9c30cc7674cfad97e67bc1867 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 25 Oct 2007 06:56:27 +0200 Subject: r25725: merge commit bc9008aa1dcb66890795f0ff2d3046da7df867d9 from v3-2-test: Author: Jeremy Allison 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) --- source4/lib/replace/getaddrinfo.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'source4') 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); } -- cgit