]> 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)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 6 Sep 2011 19:51:57 +0000 (12:51 -0700)
servers/slapd/syncrepl.c

index 790c078195dc4c395dcbbf27be6f0407976ea9bd..5fb60ce9116335d74da68200991523756ee4d4a9 100644 (file)
@@ -1842,6 +1842,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 )