]> git.sur5r.net Git - openldap/commitdiff
Fix ACL logic for non-regex peername, sockname, etc.
authorKurt Zeilenga <kurt@openldap.org>
Tue, 8 Jan 2002 02:55:03 +0000 (02:55 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 8 Jan 2002 02:55:03 +0000 (02:55 +0000)
servers/slapd/acl.c

index e63e71351cc2749c24e9af62197faeb2fe3f40dd..6e36f84521b0e95361d5a1e62488a7fde1ab2313 100644 (file)
@@ -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;
                                }
                        }