- metasingleconn_t *msc = &mc->mc_conns[ i ];
-
- if ( msc->msc_ld != NULL ) {
- ldap_unbind_ext_s( msc->msc_ld, NULL, NULL );
- }
-
- if ( !BER_BVISNULL( &msc->msc_bound_ndn ) ) {
- ber_memfree( msc->msc_bound_ndn.bv_val );
- }
-
- if ( !BER_BVISNULL( &msc->msc_cred ) ) {
- /* destroy sensitive data */
- memset( msc->msc_cred.bv_val, 0, msc->msc_cred.bv_len );
- ber_memfree( msc->msc_cred.bv_val );
- }