From: Howard Chu Date: Wed, 24 Aug 2011 23:09:37 +0000 (-0700) Subject: ITS#7029 fix uninit'd nvalue X-Git-Tag: OPENLDAP_REL_ENG_2_4_27~332 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e76fcce3f149a2d52856de013308fd8d56976934;p=openldap ITS#7029 fix uninit'd nvalue --- diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 790c078195..5fb60ce911 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -1842,6 +1842,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 )