From 319b92202bf9f1d37c7907a284fad1add5b5c1c0 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Tue, 8 Jan 2002 02:55:03 +0000 Subject: [PATCH] Fix ACL logic for non-regex peername, sockname, etc. --- servers/slapd/acl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; } } -- 2.39.5