]> git.sur5r.net Git - openldap/commitdiff
Fix playlog uninit'd fields
authorHoward Chu <hyc@openldap.org>
Sun, 12 Dec 2004 07:00:58 +0000 (07:00 +0000)
committerHoward Chu <hyc@openldap.org>
Sun, 12 Dec 2004 07:00:58 +0000 (07:00 +0000)
servers/slapd/overlays/syncprov.c

index a746c2602e14d178a642fe1ed95c80e56b3cf68d..1b4e0654b7d9c437b1cc21ed1c07ccf200cfff7a 100644 (file)
@@ -1194,6 +1194,10 @@ syncprov_playlog( Operation *op, SlapReply *rs, sessionlog *sl,
 
        ndel = i;
 
+       /* Zero out unused slots */
+       for ( i=ndel; i < num - nmods; i++ )
+               uuids[i].bv_len = 0;
+
        /* Mods must be validated to see if they belong in this delete set.
         */