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