Skip to content
Snippets Groups Projects
Commit 52e57a19 authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

ber_scanf returns LBER_ERROR, not -1, on failure.

parent 8573316a
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment