mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-10 00:45:01 -05:00
ber_scanf returns LBER_ERROR, not -1, on failure.
This commit is contained in:
parent
8573316a16
commit
52e57a195a
1 changed files with 1 additions and 1 deletions
|
|
@ -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 );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue