]> git.pld-linux.org Git - packages/whois.git/commitdiff
- fallback to no AI_IDN if glibc doesn't support it
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 21 Jul 2006 12:32:16 +0000 (12:32 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    whois-idn.patch -> 1.1

whois-idn.patch [new file with mode: 0644]

diff --git a/whois-idn.patch b/whois-idn.patch
new file mode 100644 (file)
index 0000000..c513406
--- /dev/null
@@ -0,0 +1,16 @@
+--- whois-4.7.14/whois.c.orig  2006-07-21 14:27:55.524440000 +0200
++++ whois-4.7.14/whois.c       2006-07-21 14:29:06.354440000 +0200
+@@ -695,7 +695,12 @@
+     hints.ai_socktype = SOCK_STREAM;
+     hints.ai_flags = AI_IDN;
+-    if ((err = getaddrinfo(server, port ? port : "nicname", &hints, &res)) != 0)
++    err = getaddrinfo(server, port ? port : "nicname", &hints, &res);
++    if (err == EAI_BADFLAGS) {
++      hints.ai_flags &= ~AI_IDN;
++      err = getaddrinfo(server, port ? port : "nicname", &hints, &res);
++    }
++    if (err != 0)
+       err_quit("getaddrinfo(%s): %s", server, gai_strerror(err));
+     for (ai = res; ai; ai = ai->ai_next) {
+       if ((fd = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol)) < 0)
This page took 0.155828 seconds and 4 git commands to generate.