From aac978d8f9c3750df4caf7ebcf733d7cca79aaa3 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Fri, 18 Nov 2005 00:20:01 +0000 Subject: [PATCH] better fix to ITS#4183 (the prototype in proto-slap.h was erroneously committed earlier) --- servers/slapd/back-ldif/ldif.c | 2 +- servers/slapd/modrdn.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/slapd/back-ldif/ldif.c b/servers/slapd/back-ldif/ldif.c index 0b566f5b75..ff1e5c510a 100644 --- a/servers/slapd/back-ldif/ldif.c +++ b/servers/slapd/back-ldif/ldif.c @@ -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, diff --git a/servers/slapd/modrdn.c b/servers/slapd/modrdn.c index 496abe34d7..e455d71a8a 100644 --- a/servers/slapd/modrdn.c +++ b/servers/slapd/modrdn.c @@ -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. */ -- 2.39.5