ber_scanf returns LBER_ERROR, not -1, on failure.

This commit is contained in:
Hallvard Furuseth 1999-03-03 15:45:06 +00:00
parent 8573316a16
commit 52e57a195a

View 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 );
}