Coverity scan - saved attr may not exist for a Replace

This commit is contained in:
Howard Chu 2007-02-13 11:03:16 +00:00
parent c3e28a5488
commit aa19286296

View File

@ -4803,6 +4803,7 @@ config_modify_internal( CfEntryInfo *ce, Operation *op, SlapReply *rs,
ca->valx = d->idx[i]; ca->valx = d->idx[i];
rc = config_del_vals( ct, ca ); rc = config_del_vals( ct, ca );
if ( rc != LDAP_SUCCESS ) break; if ( rc != LDAP_SUCCESS ) break;
if ( s )
s->a_flags |= SLAP_ATTR_IXDEL; s->a_flags |= SLAP_ATTR_IXDEL;
for (j=i+1; j < d->nidx; j++) for (j=i+1; j < d->nidx; j++)
if ( d->idx[j] >d->idx[i] ) if ( d->idx[j] >d->idx[i] )
@ -4813,6 +4814,7 @@ config_modify_internal( CfEntryInfo *ce, Operation *op, SlapReply *rs,
ca->line = NULL; ca->line = NULL;
rc = config_del_vals( ct, ca ); rc = config_del_vals( ct, ca );
if ( rc ) rc = LDAP_OTHER; if ( rc ) rc = LDAP_OTHER;
if ( s )
s->a_flags |= SLAP_ATTR_IXDEL; s->a_flags |= SLAP_ATTR_IXDEL;
} }
if ( ml->sml_values ) { if ( ml->sml_values ) {