6fe3bd37d9
Not complete yet. Missing ltb-project-openldap-ppolicy
33 lines
1.0 KiB
Diff
33 lines
1.0 KiB
Diff
From 6fcc222021258cf00cef05bdc487c614c33ab371 Mon Sep 17 00:00:00 2001
|
|
From: babak sarashki <babak.sarashki@windriver.com>
|
|
Date: Sun, 3 Nov 2019 14:44:05 -0800
|
|
Subject: [PATCH 10/20] openldap ai addrconfig
|
|
|
|
From stx 1901: openldap-ai-addrconfig.patch
|
|
use AI_ADDRCONFIG if defined in the environment
|
|
|
|
Author: Jan Vcelak <jvcelak@redhat.com>
|
|
Upstream ITS: #7326
|
|
Resolves: #835013
|
|
---
|
|
libraries/libldap/os-ip.c | 3 +--
|
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
|
diff --git a/libraries/libldap/os-ip.c b/libraries/libldap/os-ip.c
|
|
index 623dfad..0618900 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;
|
|
--
|
|
2.17.1
|
|
|