Blame SOURCES/openldap-ai-addrconfig.patch

d0db73
use AI_ADDRCONFIG if defined in the environment
d0db73
d0db73
Author: Jan Vcelak <jvcelak@redhat.com>
d0db73
Upstream ITS: #7326
d0db73
Resolves: #835013
d0db73
d0db73
diff --git a/libraries/libldap/os-ip.c b/libraries/libldap/os-ip.c
b11fe1
index 14899cc..b25e750 100644
d0db73
--- a/libraries/libldap/os-ip.c
d0db73
+++ b/libraries/libldap/os-ip.c
b11fe1
@@ -620,8 +620,7 @@ ldap_connect_to_host(LDAP *ld, Sockbuf *sb,
d0db73
 
d0db73
 #if defined( HAVE_GETADDRINFO ) && defined( HAVE_INET_NTOP )
d0db73
 	memset( &hints, '\0', sizeof(hints) );
d0db73
-#ifdef USE_AI_ADDRCONFIG /* FIXME: configure test needed */
d0db73
-	/* Use AI_ADDRCONFIG only on systems where its known to be needed. */
d0db73
+#ifdef AI_ADDRCONFIG
d0db73
 	hints.ai_flags = AI_ADDRCONFIG;
d0db73
 #endif
d0db73
 	hints.ai_family = ldap_int_inet4or6;