mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-07 23:51:21 -05:00
Move optimistic ret setting
This commit is contained in:
parent
8a22a0e0d0
commit
abb0797358
1 changed files with 3 additions and 2 deletions
|
|
@ -52,8 +52,6 @@ entry_schema_check(
|
|||
return LDAP_OBJECT_CLASS_VIOLATION;
|
||||
}
|
||||
|
||||
ret = LDAP_SUCCESS;
|
||||
|
||||
/* check that the entry has required attrs for each oc */
|
||||
for ( i = 0; aoc->a_vals[i] != NULL; i++ ) {
|
||||
if ( (oc = oc_find( aoc->a_vals[i]->bv_val )) == NULL ) {
|
||||
|
|
@ -99,6 +97,9 @@ entry_schema_check(
|
|||
return LDAP_SUCCESS;
|
||||
}
|
||||
|
||||
/* optimistic */
|
||||
ret = LDAP_SUCCESS;
|
||||
|
||||
/* check that each attr in the entry is allowed by some oc */
|
||||
for ( a = e->e_attrs; a != NULL; a = a->a_next ) {
|
||||
ret = oc_check_allowed( a->a_desc->ad_type, aoc->a_vals );
|
||||
|
|
|
|||
Loading…
Reference in a new issue