Skip to content
Snippets Groups Projects
Commit c4f55cea authored by Ondřej Kuzník's avatar Ondřej Kuzník Committed by Quanah Gibson-Mount
Browse files

ITS#8754 Don't try IPv6 addresses unless configured to

parent 8e6d1b8b
No related branches found
No related tags found
No related merge requests found
...@@ -622,6 +622,9 @@ ldap_connect_to_host(LDAP *ld, Sockbuf *sb, ...@@ -622,6 +622,9 @@ ldap_connect_to_host(LDAP *ld, Sockbuf *sb,
continue; continue;
} }
#ifndef LDAP_PF_INET6
if ( sai->ai_family == AF_INET6 ) continue;
#endif
/* we assume AF_x and PF_x are equal for all x */ /* we assume AF_x and PF_x are equal for all x */
s = ldap_int_socket( ld, sai->ai_family, socktype ); s = ldap_int_socket( ld, sai->ai_family, socktype );
if ( s == AC_SOCKET_INVALID ) { if ( s == AC_SOCKET_INVALID ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment