From: Howard Chu Date: Wed, 24 Aug 2011 23:09:37 +0000 (-0700) Subject: ITS#7029 fix uninit'd nvalue X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ab69775dd0fa4d4a8a8421f8ab8c808b858d7a74;p=openldap ITS#7029 fix uninit'd nvalue --- diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 9d3d9f56ce..8e5ef2b86d 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -1845,6 +1845,8 @@ static Modifications *mods_dup( Operation *op, Modifications *modlist, int match for (i=0; isml_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 )