]> git.sur5r.net Git - openldap/commitdiff
Back out last change... I forget ber_get_next eats a sequence
authorKurt Zeilenga <kurt@openldap.org>
Thu, 22 May 2003 05:41:13 +0000 (05:41 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 22 May 2003 05:41:13 +0000 (05:41 +0000)
libraries/liblber/etest.c

index 05273d0005ac8389317a957d843e405b56889bb0..25db4cdc5d66aa100c47d2201ad94ca15967ed39 100644 (file)
@@ -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" );