]> 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:24:45 +0000 (16:24 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Fri, 19 Jul 2019 16:24:45 +0000 (16:24 +0000)
This reverts commit ebf0ef5cb11fc3f92715e644d95c1bf38cc33ebb.

Depends on custom glibc from RedHat

libraries/libldap/os-ip.c

index 60f81a788c04219681853f6d010342971748eb46..89d09936abd57c4f3617eeee048d85ec95af2fc8 100644 (file)
@@ -581,7 +581,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;