Check for IP using != AF_LOCAL instead of = AF_INET

This commit is contained in:
Kurt Zeilenga 2000-08-17 04:22:36 +00:00
parent 66bad2ad21
commit f286380c82

View File

@ -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 */