From: Kurt Zeilenga Date: Thu, 22 May 2003 05:41:13 +0000 (+0000) Subject: Back out last change... I forget ber_get_next eats a sequence X-Git-Tag: OPENLDAP_REL_ENG_2_2_0ALPHA~85 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=71e0359f377471042557aae613993f96a182349a;p=openldap Back out last change... I forget ber_get_next eats a sequence --- diff --git a/libraries/liblber/etest.c b/libraries/liblber/etest.c index 05273d0005..25db4cdc5d 100644 --- a/libraries/liblber/etest.c +++ b/libraries/liblber/etest.c @@ -90,6 +90,10 @@ main( int argc, char **argv ) } fprintf(stderr, "encode: start\n" ); + if( ber_printf( ber, "{" /*}*/ ) ) { + perror( "ber_printf {" /*}*/ ); + return( EXIT_FAILURE ); + } for ( s = argv[1]; *s; s++ ) { char *buf; @@ -140,6 +144,10 @@ main( int argc, char **argv ) } fprintf(stderr, "encode: end\n" ); + if( ber_printf( ber, /*{*/ "N}" ) == -1 ) { + perror( /*{*/ "ber_printf }" ); + return( EXIT_FAILURE ); + } if ( ber_flush( sb, ber, 1 ) == -1 ) { perror( "ber_flush" );