From: Kurt Zeilenga Date: Thu, 17 Aug 2000 04:22:36 +0000 (+0000) Subject: Check for IP using != AF_LOCAL instead of = AF_INET X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2241 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f286380c8253daa52480c6d0888c55b5cf57783e;p=openldap Check for IP using != AF_LOCAL instead of = AF_INET --- diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index 59c4143b77..b6cf134bbe 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -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 */