]> git.sur5r.net Git - openldap/commitdiff
ITS#7029 fix uninit'd nvalue
authorHoward Chu <hyc@openldap.org>
Wed, 24 Aug 2011 23:09:37 +0000 (16:09 -0700)
committerHoward Chu <hyc@openldap.org>
Wed, 24 Aug 2011 23:09:37 +0000 (16:09 -0700)
servers/slapd/syncrepl.c

index 9d3d9f56ce29aa8985376a85668da75510c87fa3..8e5ef2b86d2187f5c85a0dfbe3b2e3dd13e71329 100644 (file)
@@ -1845,6 +1845,8 @@ static Modifications *mods_dup( Operation *op, Modifications *modlist, int match
                                for (i=0; i<mod->sml_numvals; i++)
                                        mod->sml_nvalues[i] = modlist->sml_nvalues[i];
                                BER_BVZERO(&mod->sml_nvalues[i]);
+                       } else {
+                               mod->sml_nvalues = NULL;
                        }
                }
                if ( match < 0 && modlist->sml_op == LDAP_MOD_REPLACE )