]> git.sur5r.net Git - openldap/commitdiff
NUL-terminate alloc'd berbuf (ITS#3086)
authorHoward Chu <hyc@openldap.org>
Thu, 15 Apr 2004 10:25:14 +0000 (10:25 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 15 Apr 2004 10:25:14 +0000 (10:25 +0000)
libraries/liblber/io.c

index a4b7c1cc97c5b65f3285af2439fd6b96fee18df6..1159614d79f3c51ca1059f2d951a6d5d3c4a948e 100644 (file)
@@ -657,6 +657,7 @@ ber_get_next(
                                AC_MEMCPY(ber->ber_buf + sblen, ber->ber_ptr, l);
                                sblen += l;
                        }
+                       *ber->ber_end = '\0';
                        ber->ber_ptr = ber->ber_buf;
                        ber->ber_usertag = 0;
                        if ((ber_len_t)sblen == ber->ber_len) {