]> git.sur5r.net Git - openldap/commitdiff
ITS#5119 fix uninit'd nval after normalization failure
authorHoward Chu <hyc@openldap.org>
Tue, 4 Sep 2007 05:40:41 +0000 (05:40 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 4 Sep 2007 05:40:41 +0000 (05:40 +0000)
servers/slapd/modify.c

index 4a0a87eb9099115c101636f063e5c51fb138cd58..e6ba1dfe4b2aedcf1813af0ca8e777c8e798fbee 100644 (file)
@@ -628,6 +628,7 @@ int slap_mods_check(
                                                        "%s: value #%ld normalization failed",
                                                        ml->sml_type.bv_val, (long) nvals );
                                                *text = textbuf;
+                                               BER_BVZERO( &ml->sml_nvalues[nvals] );
                                                return rc;
                                        }
                                }