mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Coverity scan - saved attr may not exist for a Replace
This commit is contained in:
parent
c3e28a5488
commit
aa19286296
@ -4803,7 +4803,8 @@ 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;
|
||||||
s->a_flags |= SLAP_ATTR_IXDEL;
|
if ( s )
|
||||||
|
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] )
|
||||||
d->idx[j]--;
|
d->idx[j]--;
|
||||||
@ -4813,7 +4814,8 @@ 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;
|
||||||
s->a_flags |= SLAP_ATTR_IXDEL;
|
if ( s )
|
||||||
|
s->a_flags |= SLAP_ATTR_IXDEL;
|
||||||
}
|
}
|
||||||
if ( ml->sml_values ) {
|
if ( ml->sml_values ) {
|
||||||
d = d->next;
|
d = d->next;
|
||||||
|
Loading…
Reference in New Issue
Block a user