Skip to content
Snippets Groups Projects
Commit 60d00d46 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Force sd close. Suggested by rajk@home.com

parent f97de9cd
No related branches found
No related tags found
No related merge requests found
......@@ -410,12 +410,16 @@ ldap_free_connection( LDAP *ld, LDAPConn *lc, int force, int unbind )
if ( unbind ) {
ldap_send_unbind( ld, lc->lconn_sb, NULL, NULL );
}
ldap_close_connection( lc->lconn_sb );
ber_pvt_sb_destroy( lc->lconn_sb );
if( lc->lconn_ber != NULL ) {
ber_free( lc->lconn_ber, 1 );
}
}
/* force closure */
ldap_close_connection( lc->lconn_sb );
ber_pvt_sb_destroy( lc->lconn_sb );
if( lc->lconn_ber != NULL ) {
ber_free( lc->lconn_ber, 1 );
}
prevlc = NULL;
for ( tmplc = ld->ld_conns; tmplc != NULL;
tmplc = tmplc->lconn_next ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment