From: Kurt Zeilenga Date: Tue, 8 Jan 2002 02:55:03 +0000 (+0000) Subject: Fix ACL logic for non-regex peername, sockname, etc. X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~238 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=319b92202bf9f1d37c7907a284fad1add5b5c1c0;p=openldap Fix ACL logic for non-regex peername, sockname, etc. --- diff --git a/servers/slapd/acl.c b/servers/slapd/acl.c index e63e71351c..6e36f84521 100644 --- a/servers/slapd/acl.c +++ b/servers/slapd/acl.c @@ -606,7 +606,7 @@ acl_mask( continue; } } else { - if ( strcasecmp( b->a_sockurl_pat, conn->c_listener_url ) == 0 ) + if ( strcasecmp( b->a_sockurl_pat, conn->c_listener_url ) != 0 ) continue; } } @@ -629,7 +629,7 @@ acl_mask( continue; } } else { - if ( strcasecmp( b->a_domain_pat, conn->c_peer_domain ) == 0 ) + if ( strcasecmp( b->a_domain_pat, conn->c_peer_domain ) != 0 ) continue; } } @@ -652,7 +652,7 @@ acl_mask( continue; } } else { - if ( strcasecmp( b->a_peername_pat, conn->c_peer_name ) == 0 ) + if ( strcasecmp( b->a_peername_pat, conn->c_peer_name ) != 0 ) continue; } } @@ -675,7 +675,7 @@ acl_mask( continue; } } else { - if ( strcasecmp( b->a_sockname_pat, conn->c_sock_name ) == 0 ) + if ( strcasecmp( b->a_sockname_pat, conn->c_sock_name ) != 0 ) continue; } }