]> git.sur5r.net Git - openldap/commitdiff
Initialize and destroy lc_lai.lai_mutex
authorHallvard Furuseth <hallvard@openldap.org>
Sun, 2 Apr 2006 23:47:13 +0000 (23:47 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Sun, 2 Apr 2006 23:47:13 +0000 (23:47 +0000)
servers/slapd/back-ldap/chain.c
servers/slapd/back-ldap/distproc.c

index a2051d912ca9e3e011d1a8c52df165492ccd59c6..6c041620757a5bd803cda79a3ee8377fff2ef9a6 100644 (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 );
        }
 
index 6124a97514b2174078e9f7ac60a0af38130eb956..5710a2198bf4b4550724c5e5327a2ac6188c3e7f 100644 (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 );
        }