From d42e658fcb161524c9febd6ff0031c6ab2bf65b1 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 20 May 1999 00:04:16 +0000 Subject: [PATCH] Fixed bug in dtest code. --- libraries/liblber/dtest.c | 1 + libraries/liblber/io.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.39.5