Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ingo Voss
OpenLDAP
Commits
33945aeb
Commit
33945aeb
authored
Jul 19, 2012
by
Jan Vcelak
Committed by
Quanah Gibson-Mount
May 13, 2019
Browse files
use AI_ADDRCONFIG if defined in the environment
parent
bfe2de8f
Changes
1
Show whitespace changes
Inline
Side-by-side
libraries/libldap/os-ip.c
View file @
33945aeb
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment