mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
ITS#3123 make sure ldap_int_sasl_mutex is init'd before it is used
This commit is contained in:
parent
6c2bc1de5d
commit
cc4d5c10df
@ -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 ) {
|
||||
|
@ -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... */
|
||||
|
Loading…
Reference in New Issue
Block a user