]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
use AI_ADDRCONFIG if defined in the environment
authorJan Vcelak <jvcelak@redhat.com>
Thu, 19 Jul 2012 08:33:18 +0000 (10:33 +0200)
committerQuanah Gibson-Mount <quanah@openldap.org>
Mon, 13 May 2019 15:35:11 +0000 (15:35 +0000)
libraries/libldap/os-ip.c

index cb7b0a3b27d9386131e6a12f2f92506ba2263fc7..e5b358c5fba0c49e85269baf40427716fb3c347e 100644 (file)
@@ -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;