From f286380c8253daa52480c6d0888c55b5cf57783e Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 17 Aug 2000 04:22:36 +0000 Subject: [PATCH] Check for IP using != AF_LOCAL instead of = AF_INET --- servers/slapd/daemon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */ -- 2.39.5