mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Check for IP using != AF_LOCAL instead of = AF_INET
This commit is contained in:
parent
66bad2ad21
commit
f286380c82
@ -376,8 +376,8 @@ static Listener * open_listener( const char* url )
|
||||
#endif
|
||||
|
||||
#ifdef LDAP_PF_LOCAL
|
||||
/* for IP sockets only */
|
||||
if ( l.sl_sa.sa_addr.sa_family == AF_INET ) {
|
||||
/* for IPv4 and IPv6 sockets only */
|
||||
if ( l.sl_sa.sa_addr.sa_family != AF_LOCAL ) {
|
||||
#endif /* LDAP_PF_LOCAL */
|
||||
#endif /* HAVE_GETADDRINFO */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user