From: Pierangelo Masarati Date: Fri, 14 Oct 2005 10:02:50 +0000 (+0000) Subject: fix previous commit (modifyTimestamp didn't get appended to the list); add opattrs... X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~262 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b90a49618713f20160fc3467915448ecc2cfb4c4;p=openldap fix previous commit (modifyTimestamp didn't get appended to the list); add opattrs to back-monitor mods --- diff --git a/servers/slapd/back-monitor/modify.c b/servers/slapd/back-monitor/modify.c index eafeb6e063..728975360c 100644 --- a/servers/slapd/back-monitor/modify.c +++ b/servers/slapd/back-monitor/modify.c @@ -69,6 +69,9 @@ monitor_back_modify( Operation *op, SlapReply *rs ) rc = LDAP_INSUFFICIENT_ACCESS; } else { + assert( !SLAP_SHADOW( op->o_bd ) ); + slap_mods_opattrs( op, op->orm_modlist, 0 ); + rc = monitor_entry_modify( op, rs, e ); } diff --git a/servers/slapd/modify.c b/servers/slapd/modify.c index b07c6c38c9..5e45e20fbd 100644 --- a/servers/slapd/modify.c +++ b/servers/slapd/modify.c @@ -920,6 +920,8 @@ void slap_mods_opattrs( BER_BVZERO( &mod->sml_values[1] ); assert( !BER_BVISNULL( &mod->sml_values[0] ) ); mod->sml_nvalues = NULL; + *modtail = mod; + modtail = &mod->sml_next; } } }