mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-22 06:43:17 -05:00
Don't crash if attr_find() fails (Howard, you might like to review this)
This commit is contained in:
parent
eed45f454c
commit
ac7ac5acef
1 changed files with 7 additions and 3 deletions
|
|
@ -240,9 +240,13 @@ int bdb_modify_internal(
|
|||
/* A nullified replace still does its delete action */
|
||||
case LDAP_MOD_REPLACE | NULLIFIED:
|
||||
ap = attr_find( save_attrs, ml->sml_desc );
|
||||
rc = bdb_index_values( op, tid, ap->a_desc,
|
||||
ap->a_nvals,
|
||||
e->e_id, SLAP_INDEX_DELETE_OP );
|
||||
if ( ap != NULL ) {
|
||||
rc = bdb_index_values( op, tid, ap->a_desc,
|
||||
ap->a_nvals,
|
||||
e->e_id, SLAP_INDEX_DELETE_OP );
|
||||
} else {
|
||||
rc = LDAP_SUCCESS;
|
||||
}
|
||||
if ( rc || ml->sml_op == LDAP_MOD_DELETE ||
|
||||
(ml->sml_op & NULLIFIED))
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue