3128277048
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/openldap#f9945ac297c550f1bcc2cb810f2284e4b23b1e75
21 lines
694 B
Diff
21 lines
694 B
Diff
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
|
|
index b31e05d..fa361ab 100644
|
|
--- a/libraries/libldap/os-ip.c
|
|
+++ b/libraries/libldap/os-ip.c
|
|
@@ -594,8 +594,7 @@ ldap_connect_to_host(LDAP *ld, Sockbuf *sb,
|
|
|
|
#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;
|