mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-19 14:30:57 +08:00
ITS#3226: Clear attribute flags after schema_check failed
This commit is contained in:
parent
24b7f5c42c
commit
b8113c5df9
@ -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…
x
Reference in New Issue
Block a user