]> git.sur5r.net Git - openldap/commitdiff
fix previous commit (modifyTimestamp didn't get appended to the list); add opattrs...
authorPierangelo Masarati <ando@openldap.org>
Fri, 14 Oct 2005 10:02:50 +0000 (10:02 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 14 Oct 2005 10:02:50 +0000 (10:02 +0000)
servers/slapd/back-monitor/modify.c
servers/slapd/modify.c

index eafeb6e063f6611815e5f4053d3f0d90f144f540..728975360cf8de4e0f67bf04ba0601d8315b8f79 100644 (file)
@@ -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 );
        }
 
index b07c6c38c95475183ce0cd2bcf7829148c903cfd..5e45e20fbd88332491d3d7139deb0ad5071e0c19 100644 (file)
@@ -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;
                }
        }
 }