]> git.sur5r.net Git - openldap/commitdiff
Check for IP using != AF_LOCAL instead of = AF_INET
authorKurt Zeilenga <kurt@openldap.org>
Thu, 17 Aug 2000 04:22:36 +0000 (04:22 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 17 Aug 2000 04:22:36 +0000 (04:22 +0000)
servers/slapd/daemon.c

index 59c4143b77bbabb7bfccff5bc8ac2909d6c8bb75..b6cf134bbe8f8b9ce08161ee2e33ff7b91e144b2 100644 (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 */