Initialize and destroy lc_lai.lai_mutex

This commit is contained in:
Hallvard Furuseth 2006-04-02 23:47:13 +00:00
parent c63d1f04f8
commit b2f79aa42e
2 changed files with 4 additions and 0 deletions

View File

@ -1284,6 +1284,7 @@ ldap_chain_db_init(
return 1;
}
memset( lc, 0, sizeof( ldap_chain_t ) );
ldap_pvt_thread_mutex_init( &lc->lc_lai.lai_mutex );
on->on_bi.bi_private = (void *)lc;
@ -1533,6 +1534,7 @@ ldap_chain_db_destroy(
if ( lc ) {
avl_free( lc->lc_lai.lai_tree, NULL );
ldap_pvt_thread_mutex_destroy( &lc->lc_lai.lai_mutex );
ch_free( lc );
}

View File

@ -583,6 +583,7 @@ ldap_distproc_db_init(
return 1;
}
memset( lc, 0, sizeof( ldap_distproc_t ) );
ldap_pvt_thread_mutex_init( &lc->lc_lai.lai_mutex );
on->on_bi.bi_private = (void *)lc;
@ -781,6 +782,7 @@ ldap_distproc_db_destroy(
if ( lc ) {
avl_free( lc->lc_lai.lai_tree, NULL );
ldap_pvt_thread_mutex_destroy( &lc->lc_lai.lai_mutex );
ch_free( lc );
}