mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
save 1 function call...
This commit is contained in:
parent
673ea82eab
commit
4148ddc31f
@ -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;
|
||||
|
||||
|
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user