ITS#3123 make sure ldap_int_sasl_mutex is init'd before it is used

This commit is contained in:
Howard Chu 2004-05-21 10:53:30 +00:00
parent 6c2bc1de5d
commit cc4d5c10df
2 changed files with 4 additions and 2 deletions

View File

@ -114,8 +114,6 @@ int ldap_int_sasl_init( void )
ldap_pvt_sasl_mutex_lock,
ldap_pvt_sasl_mutex_unlock,
ldap_pvt_sasl_mutex_dispose );
ldap_pvt_thread_mutex_init( &ldap_int_sasl_mutex );
#endif
if ( sasl_client_init( NULL ) == SASL_OK ) {

View File

@ -405,6 +405,10 @@ void ldap_int_utils_init( void )
ldap_pvt_thread_mutex_init( &ldap_int_ctime_mutex );
#endif
ldap_pvt_thread_mutex_init( &ldap_int_resolv_mutex );
#ifdef HAVE_CYRUS_SASL
ldap_pvt_thread_mutex_init( &ldap_int_sasl_mutex );
#endif
#endif
/* call other module init functions here... */