c-ares up to version 1.7.3 has fatal bug, don't bother with IPv6->name
authorZdeněk Salvet <salvet@ics.muni.cz>
Wed, 28 Jul 2010 10:05:53 +0000 (10:05 +0000)
committerZdeněk Salvet <salvet@ics.muni.cz>
Wed, 28 Jul 2010 10:05:53 +0000 (10:05 +0000)
translation until the bug is fixed

org.glite.lb.server/src/bkserverd.c

index 1bddf4d..2b817c8 100644 (file)
@@ -1839,6 +1839,11 @@ static int asyn_gethostbyaddr(char **name, char **service, const struct sockaddr
        int     err = NETDB_INTERNAL;
        struct sockaddr_in      v4;
 
+       if (!numeric && addr->sa_family == AF_INET6) {
+               /* don't bother, c-ares up to version 1.7.3 has fatal bug */
+               return NETDB_INTERNAL;
+       }
+
 /* start timer */
         gettimeofday(&start_time,0);