ITS#3912 missed an invocation of entry_schema_check in last round of changes

This commit is contained in:
Howard Chu 2005-08-02 09:44:44 +00:00
parent ad0be35f47
commit b98d3b5903

View File

@ -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;