openldap-ai-addrconfig.patch 694 B

123456789101112131415161718192021
  1. use AI_ADDRCONFIG if defined in the environment
  2. Author: Jan Vcelak <jvcelak@redhat.com>
  3. Upstream ITS: #7326
  4. Resolves: #835013
  5. diff --git a/libraries/libldap/os-ip.c b/libraries/libldap/os-ip.c
  6. index b31e05d..fa361ab 100644
  7. --- a/libraries/libldap/os-ip.c
  8. +++ b/libraries/libldap/os-ip.c
  9. @@ -594,8 +594,7 @@ ldap_connect_to_host(LDAP *ld, Sockbuf *sb,
  10. #if defined( HAVE_GETADDRINFO ) && defined( HAVE_INET_NTOP )
  11. memset( &hints, '\0', sizeof(hints) );
  12. -#ifdef USE_AI_ADDRCONFIG /* FIXME: configure test needed */
  13. - /* Use AI_ADDRCONFIG only on systems where its known to be needed. */
  14. +#ifdef AI_ADDRCONFIG
  15. hints.ai_flags = AI_ADDRCONFIG;
  16. #endif
  17. hints.ai_family = ldap_int_inet4or6;