]> git.sur5r.net Git - openldap/commitdiff
ITS#3912 missed an invocation of entry_schema_check in last round of changes
authorHoward Chu <hyc@openldap.org>
Tue, 2 Aug 2005 09:44:44 +0000 (09:44 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 2 Aug 2005 09:44:44 +0000 (09:44 +0000)
servers/slapd/back-ldif/ldif.c

index 10afd9c8f6718a4c01066fb57a906521e322061f..39244c85040d5bba4880a76beb045fc89af66b95 100644 (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;