]> git.sur5r.net Git - openldap/commitdiff
cleanup
authorKurt Zeilenga <kurt@openldap.org>
Tue, 29 Apr 2003 21:14:12 +0000 (21:14 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 29 Apr 2003 21:14:12 +0000 (21:14 +0000)
servers/slapd/acl.c

index d5377a0908c056a3dbe2ac334709a741c8e0129f..30fb2dc2f16d744a083a6ade33b865ec733b0cef 100644 (file)
@@ -135,9 +135,12 @@ access_allowed(
 
        assert( attr != NULL );
 
-       if( op && op->o_is_auth_check && (access == ACL_SEARCH || access == ACL_READ)) {
+       if( op && op->o_is_auth_check &&
+               ( access == ACL_SEARCH || access == ACL_READ ))
+       {
                access = ACL_AUTH;
        }
+
        if( state && state->as_recorded && state->as_vd_ad==desc) { 
                if( state->as_recorded & ACL_STATE_RECORDED_NV &&
                        val == NULL )
@@ -150,7 +153,9 @@ access_allowed(
                        return state->as_result;
                }
                st_same_attr = 1;
-       } if (state) {
+       }
+
+       if( state ) {
                state->as_vd_ad=desc;
        }
 
@@ -259,8 +264,7 @@ access_allowed(
                a = state->as_vd_acl;
                mask = state->as_vd_acl_mask;
                count = state->as_vd_acl_count;
-               AC_MEMCPY( matches, state->as_vd_acl_matches,
-                       sizeof(matches) );
+               AC_MEMCPY( matches, state->as_vd_acl_matches, sizeof(matches) );
                goto vd_access;
 
        } else {