mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
don't use uninitialized mutexes
This commit is contained in:
parent
2f366c3a52
commit
7cba7d0b39
@ -89,7 +89,6 @@ monitor_cache_add(
|
|||||||
assert( e != NULL );
|
assert( e != NULL );
|
||||||
|
|
||||||
mp = ( monitor_entry_t *)e->e_private;
|
mp = ( monitor_entry_t *)e->e_private;
|
||||||
ldap_pvt_thread_mutex_init( &mp->mp_mutex );
|
|
||||||
|
|
||||||
mc = ( monitor_cache_t * )ch_malloc( sizeof( monitor_cache_t ) );
|
mc = ( monitor_cache_t * )ch_malloc( sizeof( monitor_cache_t ) );
|
||||||
mc->mc_ndn = e->e_nname;
|
mc->mc_ndn = e->e_nname;
|
||||||
|
@ -163,6 +163,8 @@ monitor_entrypriv_create( void )
|
|||||||
mp->mp_flags = MONITOR_F_NONE;
|
mp->mp_flags = MONITOR_F_NONE;
|
||||||
mp->mp_cb = NULL;
|
mp->mp_cb = NULL;
|
||||||
|
|
||||||
|
ldap_pvt_thread_mutex_init( &mp->mp_mutex );
|
||||||
|
|
||||||
return mp;
|
return mp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user