Fail if ldap_set_option fails

This commit is contained in:
Kurt Zeilenga 2000-06-25 18:17:47 +00:00
parent bf9231ac40
commit 1a862732ee
3 changed files with 3 additions and 0 deletions

View File

@ -376,6 +376,7 @@ main( int argc, char **argv )
{
fprintf( stderr, "Could not set LDAP_OPT_PROTOCOL_VERSION %d\n",
version );
return EXIT_FAILURE;
}
if ( use_tls && ldap_start_tls_s( ld, NULL, NULL ) != LDAP_SUCCESS ) {

View File

@ -365,6 +365,7 @@ main(int argc, char **argv)
{
fprintf( stderr, "Could not set LDAP_OPT_PROTOCOL_VERSION %d\n",
version );
return EXIT_FAILURE;
}
if ( use_tls && ldap_start_tls_s( ld, NULL, NULL ) != LDAP_SUCCESS ) {

View File

@ -326,6 +326,7 @@ main( int argc, char *argv[] )
if(rc != LDAP_OPT_SUCCESS ) {
fprintf( stderr, "Could not set LDAP_OPT_PROTOCOL_VERSION %d\n", version );
return EXIT_FAILURE;
}
if ( use_tls && ldap_start_tls_s( ld, NULL, NULL ) != LDAP_SUCCESS ) {