mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-23 14:09:39 +08:00
ITS#3912 missed an invocation of entry_schema_check in last round of changes
This commit is contained in:
parent
ad0be35f47
commit
b98d3b5903
@ -560,7 +560,7 @@ static int apply_modify_to_entry(Entry * entry,
|
||||
entry->e_ocflags = 0;
|
||||
}
|
||||
/* check that the entry still obeys the schema */
|
||||
rc = entry_schema_check(op->o_bd, entry, NULL, 0,
|
||||
rc = entry_schema_check(op, entry, NULL, 0,
|
||||
&rs->sr_text, textbuf, sizeof( textbuf ) );
|
||||
}
|
||||
return rc;
|
||||
@ -767,7 +767,7 @@ static int ldif_back_add(Operation *op, SlapReply *rs) {
|
||||
int statres;
|
||||
char textbuf[SLAP_TEXT_BUFLEN];
|
||||
|
||||
rs->sr_err = entry_schema_check(op->o_bd, e, NULL, 0,
|
||||
rs->sr_err = entry_schema_check(op, e, NULL, 0,
|
||||
&rs->sr_text, textbuf, sizeof( textbuf ) );
|
||||
if ( rs->sr_err != LDAP_SUCCESS ) goto send_res;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user