mrc0mmand / rpms / openldap

Forked from rpms/openldap 3 years ago
Clone

Blame SOURCES/openldap-ai-addrconfig.patch

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