Use ldap_unbind_ext(3)

This commit is contained in:
Kurt Zeilenga 2003-12-18 19:15:57 +00:00
parent 42d7d6d743
commit d2b9a4913b
6 changed files with 10 additions and 10 deletions

View File

@ -217,7 +217,7 @@ main( int argc, char **argv )
free( bvalue.bv_val );
ldap_unbind( ld );
ldap_unbind_ext( ld, NULL, NULL );
return rc;
}

View File

@ -197,7 +197,7 @@ main( int argc, char **argv )
}
}
ldap_unbind( ld );
ldap_unbind_ext( ld, NULL, NULL );
return( retval );
}

View File

@ -307,7 +307,7 @@ main( int argc, char **argv )
}
if ( !not ) {
ldap_unbind( ld );
ldap_unbind_ext( ld, NULL, NULL );
}
if ( rejfp != NULL ) {

View File

@ -227,7 +227,7 @@ main(int argc, char **argv)
}
}
ldap_unbind( ld );
ldap_unbind_ext( ld, NULL, NULL );
return( retval );
}

View File

@ -259,7 +259,7 @@ main( int argc, char *argv[] )
if( ber == NULL ) {
perror( "ber_alloc_t" );
ldap_unbind( ld );
ldap_unbind_ext( ld, NULL, NULL );
return EXIT_FAILURE;
}
@ -289,7 +289,7 @@ main( int argc, char *argv[] )
if( rc < 0 ) {
perror( "ber_flatten2" );
ldap_unbind( ld );
ldap_unbind_ext( ld, NULL, NULL );
return EXIT_FAILURE;
}
}
@ -307,7 +307,7 @@ main( int argc, char *argv[] )
if( rc != LDAP_SUCCESS ) {
ldap_perror( ld, "ldap_extended_operation" );
ldap_unbind( ld );
ldap_unbind_ext( ld, NULL, NULL );
return EXIT_FAILURE;
}
@ -339,7 +339,7 @@ main( int argc, char *argv[] )
if( ber == NULL ) {
perror( "ber_init" );
ldap_unbind( ld );
ldap_unbind_ext( ld, NULL, NULL );
return EXIT_FAILURE;
}
@ -383,7 +383,7 @@ main( int argc, char *argv[] )
skip:
/* disconnect from server */
ldap_unbind (ld);
ldap_unbind_ext( ld, NULL, NULL );
return code == LDAP_SUCCESS ? EXIT_SUCCESS : EXIT_FAILURE;
}

View File

@ -825,7 +825,7 @@ getNextPage:
}
#endif
ldap_unbind( ld );
ldap_unbind_ext( ld, NULL, NULL );
#ifdef HAVE_CYRUS_SASL
sasl_done();
#endif