From: Kurt Zeilenga Date: Thu, 20 May 1999 00:04:16 +0000 (+0000) Subject: Fixed bug in dtest code. X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~39 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d42e658fcb161524c9febd6ff0031c6ab2bf65b1;p=openldap Fixed bug in dtest code. --- diff --git a/libraries/liblber/dtest.c b/libraries/liblber/dtest.c index 240909a0c3..0415ccd982 100644 --- a/libraries/liblber/dtest.c +++ b/libraries/liblber/dtest.c @@ -81,6 +81,7 @@ main( int argc, char **argv ) fmt[1] = '\0'; printf("decode: format %s\n", fmt ); + len = sizeof(buf); rc = ber_scanf( ber, fmt, &buf[0], &len ); if( rc == LBER_ERROR ) { diff --git a/libraries/liblber/io.c b/libraries/liblber/io.c index 74e3c2234d..a4e6bc93db 100644 --- a/libraries/liblber/io.c +++ b/libraries/liblber/io.c @@ -441,7 +441,7 @@ ber_get_next( Sockbuf *sb, unsigned long *len, BerElement *ber ) */ if (ber->ber_rwptr == NULL) { - assert( ber->ber_buf == NULL ); + /* assert( ber->ber_buf == NULL ); */ ber->ber_rwptr = (char *) &ber->ber_tag; ber->ber_tag = 0; }