]> git.sur5r.net Git - openldap/commitdiff
In entry_decode, must null-terminate a_nvals array
authorHoward Chu <hyc@openldap.org>
Wed, 26 Feb 2003 09:11:56 +0000 (09:11 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 26 Feb 2003 09:11:56 +0000 (09:11 +0000)
servers/slapd/entry.c

index 566fd63262cbe7338723d7bd5954b2b8335f1de7..f4dba0124bf4763c16a97185a6435d6e90c569bd 100644 (file)
@@ -707,6 +707,8 @@ int entry_decode(struct berval *bv, Entry **e)
                                        return rc;
                                }
                        }
+                       a->a_nvals[j].bv_val = NULL;
+                       a->a_nvals[j].bv_len = 0;
                }
 #endif