]> git.sur5r.net Git - openldap/commitdiff
Fixed bug in dtest code.
authorKurt Zeilenga <kurt@openldap.org>
Thu, 20 May 1999 00:04:16 +0000 (00:04 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 20 May 1999 00:04:16 +0000 (00:04 +0000)
libraries/liblber/dtest.c
libraries/liblber/io.c

index 240909a0c3bb19e745f954d7c60c1ea405da3ec9..0415ccd98218e4f5eb5091f47d278a9c1a38b061 100644 (file)
@@ -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 ) {
index 74e3c2234d7bd3321f5388dc6e94bea976eec1fe..a4e6bc93db0dc392443bb8fd901070e9d128ef52 100644 (file)
@@ -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;
        }