mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-01 20:49:35 -05:00
ITS#3226: Clear attribute flags after schema_check failed
This commit is contained in:
parent
24b7f5c42c
commit
b8113c5df9
1 changed files with 4 additions and 0 deletions
|
|
@ -266,6 +266,10 @@ int bdb_modify_internal(
|
|||
rc = entry_schema_check( op->o_bd, e, save_attrs, text, textbuf, textlen );
|
||||
if ( rc != LDAP_SUCCESS || op->o_noop ) {
|
||||
attrs_free( e->e_attrs );
|
||||
/* clear the indexing flags */
|
||||
for ( ap = save_attrs; ap != NULL; ap = ap->a_next ) {
|
||||
ap->a_flags = 0;
|
||||
}
|
||||
e->e_attrs = save_attrs;
|
||||
|
||||
if ( rc != LDAP_SUCCESS ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue