about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-02-16 21:00:54 +0000
committerUlrich Drepper <drepper@redhat.com>2004-02-16 21:00:54 +0000
commit06877a37ad2aba96442d1e605a171bed39dc02d4 (patch)
treefe78922e9a9c9778ced16b3b58e29ce7130feb14 /sysdeps
parentbf14fb7c60ffdc0024779ccfd20476538b7716ae (diff)
downloadglibc-06877a37ad2aba96442d1e605a171bed39dc02d4.tar.gz
glibc-06877a37ad2aba96442d1e605a171bed39dc02d4.tar.xz
glibc-06877a37ad2aba96442d1e605a171bed39dc02d4.zip
Update.
	* sysdeps/posix/getaddrinfo.c (getaddrinfo): Undo unintended
	changes in last patch.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/posix/getaddrinfo.c24
1 files changed, 2 insertions, 22 deletions
diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c
index 372bc9de4a..7c192bf2eb 100644
--- a/sysdeps/posix/getaddrinfo.c
+++ b/sysdeps/posix/getaddrinfo.c
@@ -62,14 +62,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #define UNIX_PATH_MAX  108
 #endif
 
-extern int idna_to_ascii_lz (const char *input, char **output, int flags);
-#define IDNA_SUCCESS 0
-#ifdef HAVE_LIBIDN
-# define SUPPORTED_IDN_FLAGS AI_IDN|AI_CANONIDN
-#else
-# define SUPPORTED_IDN_FLAGS 0
-#endif
-
 struct gaih_service
   {
     const char *name;
@@ -547,18 +539,6 @@ gaih_inet (const char *name, const struct gaih_service *service,
       at->scopeid = 0;
       at->next = NULL;
 
-#if 0
-      if (req->ai_flags & AI_IDN)
-	{
-	  char *p;
-	  rc = idna_to_ascii_lz (name, &p, 0);
-	  if (rc != IDNA_SUCCESS)
-	    return -EAI_IDN_ENCODE;
-	  name = strdupa (p);
-	  free (p);
-	}
-#endif
-
       if (inet_pton (AF_INET, name, at->addr) > 0)
 	{
 	  if (req->ai_family == AF_UNSPEC || req->ai_family == AF_INET)
@@ -1270,10 +1250,10 @@ getaddrinfo (const char *name, const char *service,
 
   if (hints->ai_flags
       & ~(AI_PASSIVE|AI_CANONNAME|AI_NUMERICHOST|AI_ADDRCONFIG|AI_V4MAPPED
-	  |SUPPORTED_IDN_FLAGS|AI_ALL))
+	  |AI_ALL))
     return EAI_BADFLAGS;
 
-  if ((hints->ai_flags & (AI_CANONNAME|AI_CANONIDN)) && name == NULL)
+  if ((hints->ai_flags & AI_CANONNAME) && name == NULL)
     return EAI_BADFLAGS;
 
   if (hints->ai_flags & AI_ADDRCONFIG)