1 |
fix: do not send IPv6 DNS queries when IPv6 is disabled on the host |
2 |
|
3 |
Author: Jan Vcelak <jvcelak@redhat.com> |
4 |
Resolves: #835012 |
5 |
Upstream ITS: #7326 |
6 |
|
7 |
diff --git a/libraries/libldap/os-ip.c b/libraries/libldap/os-ip.c |
8 |
index 2864256..c3e0876 100644 |
9 |
--- a/libraries/libldap/os-ip.c |
10 |
+++ b/libraries/libldap/os-ip.c |
11 |
@@ -584,8 +584,7 @@ ldap_connect_to_host(LDAP *ld, Sockbuf *sb, |
12 |
|
13 |
#if defined( HAVE_GETADDRINFO ) && defined( HAVE_INET_NTOP ) |
14 |
memset( &hints, '\0', sizeof(hints) ); |
15 |
-#ifdef USE_AI_ADDRCONFIG /* FIXME: configure test needed */ |
16 |
- /* Use AI_ADDRCONFIG only on systems where its known to be needed. */ |
17 |
+#ifdef AI_ADDRCONFIG |
18 |
hints.ai_flags = AI_ADDRCONFIG; |
19 |
#endif |
20 |
hints.ai_family = ldap_int_inet4or6; |
21 |
-- |
22 |
1.7.11.4 |
23 |
|