From b8113c5df9c750d96053a44c390e6deee4fb3460 Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Fri, 9 Jul 2004 11:18:42 +0000 Subject: [PATCH] ITS#3226: Clear attribute flags after schema_check failed --- servers/slapd/back-bdb/modify.c | 4 ++++ 1 file changed, 4 insertions(+) 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 ) { -- 2.39.5