From: Ralf Haferkamp Date: Fri, 9 Jul 2004 11:18:42 +0000 (+0000) Subject: ITS#3226: Clear attribute flags after schema_check failed X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~105 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b8113c5df9c750d96053a44c390e6deee4fb3460;p=openldap ITS#3226: Clear attribute flags after schema_check failed --- diff --git a/servers/slapd/back-bdb/modify.c b/servers/slapd/back-bdb/modify.c index 772e89bc99..45d2efeb11 100644 --- a/servers/slapd/back-bdb/modify.c +++ b/servers/slapd/back-bdb/modify.c @@ -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 ) {