]> git.sur5r.net Git - openldap/commitdiff
better fix to ITS#4183 (the prototype in proto-slap.h was erroneously committed earlier)
authorPierangelo Masarati <ando@openldap.org>
Fri, 18 Nov 2005 00:20:01 +0000 (00:20 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 18 Nov 2005 00:20:01 +0000 (00:20 +0000)
servers/slapd/back-ldif/ldif.c
servers/slapd/modrdn.c

index 0b566f5b750913be498d7a0273650e9454a4ad5a..ff1e5c510a6e9f7b03924456c3e454b5218c75ac 100644 (file)
@@ -830,7 +830,7 @@ static int ldif_back_modify(Operation *op, SlapReply *rs) {
        int spew_res;
 
        if ( !SLAP_SHADOW( op->o_bd ))
-               slap_mods_opattrs( op, op->orm_modlist, 1 );
+               slap_mods_opattrs( op, &op->orm_modlist, 1 );
 
        ldap_pvt_thread_mutex_lock(&ni->li_mutex);
        dn2path(&op->o_req_ndn, &op->o_bd->be_nsuffix[0], &ni->li_base_path,
index 496abe34d7a300599bbc6b0538c283d357cc0a3c..e455d71a8a11f11b826d76f327379d1e4d393de8 100644 (file)
@@ -503,7 +503,7 @@ slap_modrdn2mods(
 done:
 
        if ( rs->sr_err == LDAP_SUCCESS && !repl_user ) {
-               slap_mods_opattrs( op, mod, 1 );
+               slap_mods_opattrs( op, &mod, 1 );
        }
 
        /* LDAP v2 supporting correct attribute handling. */