mrc0mmand / rpms / openldap

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