save 1 function call...

This commit is contained in:
Pierangelo Masarati 2005-08-02 08:13:16 +00:00
parent 673ea82eab
commit 4148ddc31f
2 changed files with 4 additions and 4 deletions

View File

@ -367,7 +367,7 @@ retry:;
if ( rs->sr_err == LDAP_SERVER_DOWN
|| ( rs->sr_err != LDAP_SUCCESS && LDAP_BACK_TLS_CRITICAL( li ) ) )
{
ldap_unbind_ext_s( ld, NULL, NULL );
ldap_unbind_ext( ld, NULL, NULL );
goto error_return;
}
@ -672,7 +672,7 @@ retry_lock:;
assert( lc->lc_refcnt > 0 );
if ( lc->lc_refcnt == 1 ) {
ldap_unbind_ext_s( lc->lc_ld, NULL, NULL );
ldap_unbind_ext( lc->lc_ld, NULL, NULL );
lc->lc_ld = NULL;
/* lc here must be the regular lc, reset and ready for init */
@ -841,7 +841,7 @@ retry_lock:;
}
if ( lc->lc_refcnt == 1 ) {
ldap_unbind_ext_s( lc->lc_ld, NULL, NULL );
ldap_unbind_ext( lc->lc_ld, NULL, NULL );
lc->lc_ld = NULL;
lc->lc_bound = 0;

View File

@ -204,7 +204,7 @@ ldap_back_conn_free( void *v_lc )
struct ldapconn *lc = v_lc;
if ( lc->lc_ld != NULL ) {
ldap_unbind_ext_s( lc->lc_ld, NULL, NULL );
ldap_unbind_ext( lc->lc_ld, NULL, NULL );
}
if ( !BER_BVISNULL( &lc->lc_bound_ndn ) ) {
ch_free( lc->lc_bound_ndn.bv_val );