]> git.sur5r.net Git - openldap/commitdiff
In slap_mods_check, must null-terminate sm_nvalues array
authorHoward Chu <hyc@openldap.org>
Wed, 26 Feb 2003 09:24:01 +0000 (09:24 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 26 Feb 2003 09:24:01 +0000 (09:24 +0000)
servers/slapd/modify.c

index 1896fb9011b2ea7be7bc021d81b5840f7682676b..94d642c2b557e0b0ae7746ef31306a8ce8434f16 100644 (file)
@@ -634,6 +634,8 @@ int slap_mods_check(
                                                return rc;
                                        }
                                }
+                               ml->sml_nvalues[nvals].bv_val = NULL;
+                               ml->sml_nvalues[nvals].bv_len = 0;
                        }
 #endif