]> git.sur5r.net Git - openldap/commitdiff
ber_scanf returns LBER_ERROR, not -1, on failure.
authorHallvard Furuseth <hallvard@openldap.org>
Wed, 3 Mar 1999 15:45:06 +0000 (15:45 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Wed, 3 Mar 1999 15:45:06 +0000 (15:45 +0000)
libraries/liblber/dtest.c

index df683a0ec7d287efda8ce71e7abd49871ed31fa1..1d2a3b8217f74f2326ba99e70cf3c04a1e0ad685 100644 (file)
@@ -62,7 +62,7 @@ main( int argc, char **argv )
        }
        printf( "message has tag 0x%x and length %ld\n", tag, len );
 
-       if ( ber_scanf( ber, "i", &i ) == -1 ) {
+       if ( ber_scanf( ber, "i", &i ) == LBER_ERROR ) {
                fprintf( stderr, "ber_scanf returns -1\n" );
                exit( 1 );
        }