mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
Force sd close. Suggested by rajk@home.com
This commit is contained in:
parent
f97de9cdc6
commit
60d00d4649
@ -410,12 +410,16 @@ ldap_free_connection( LDAP *ld, LDAPConn *lc, int force, int unbind )
|
|||||||
if ( unbind ) {
|
if ( unbind ) {
|
||||||
ldap_send_unbind( ld, lc->lconn_sb, NULL, NULL );
|
ldap_send_unbind( ld, lc->lconn_sb, NULL, NULL );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* force closure */
|
||||||
ldap_close_connection( lc->lconn_sb );
|
ldap_close_connection( lc->lconn_sb );
|
||||||
ber_pvt_sb_destroy( lc->lconn_sb );
|
ber_pvt_sb_destroy( lc->lconn_sb );
|
||||||
|
|
||||||
if( lc->lconn_ber != NULL ) {
|
if( lc->lconn_ber != NULL ) {
|
||||||
ber_free( lc->lconn_ber, 1 );
|
ber_free( lc->lconn_ber, 1 );
|
||||||
}
|
}
|
||||||
}
|
|
||||||
prevlc = NULL;
|
prevlc = NULL;
|
||||||
for ( tmplc = ld->ld_conns; tmplc != NULL;
|
for ( tmplc = ld->ld_conns; tmplc != NULL;
|
||||||
tmplc = tmplc->lconn_next ) {
|
tmplc = tmplc->lconn_next ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user