]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Revert "use AI_ADDRCONFIG if defined in the environment"
authorQuanah Gibson-Mount <quanah@openldap.org>
Fri, 19 Jul 2019 16:23:18 +0000 (16:23 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Fri, 19 Jul 2019 16:23:18 +0000 (16:23 +0000)
This reverts commit 33945aeb96124f5956c0657b41bb68ca29fab66c.

Depends on custom glibc from RedHat

libraries/libldap/os-ip.c

index d48e28caa6d5db73f7d3f9c17f975f5465628a28..3c1fd15df884fcbc3d1e2a2e236fde7845371288 100644 (file)
@@ -594,7 +594,8 @@ ldap_connect_to_host(LDAP *ld, Sockbuf *sb,
 
 #if defined( HAVE_GETADDRINFO ) && defined( HAVE_INET_NTOP )
        memset( &hints, '\0', sizeof(hints) );
-#ifdef AI_ADDRCONFIG
+#ifdef USE_AI_ADDRCONFIG /* FIXME: configure test needed */
+       /* Use AI_ADDRCONFIG only on systems where its known to be needed. */
        hints.ai_flags = AI_ADDRCONFIG;
 #endif
        hints.ai_family = ldap_int_inet4or6;