]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/modify.c
fix previous commit (ITS#5819)
[openldap] / servers / slapd / modify.c
index 47eab58f9c6c69420cb75928043c69142d168578..5744b60dcc446320465a23a10c8abeb4aa3dfef4 100644 (file)
@@ -1,7 +1,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2007 The OpenLDAP Foundation.
+ * Copyright 1998-2008 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -589,6 +589,7 @@ int slap_mods_check(
                                        ml->sml_values[nvals] = pval;
                                }
                        }
+                       ml->sml_values[nvals].bv_len = 0;
                        ml->sml_numvals = nvals;
 
                        /*