LDAP_V ( ldap_pvt_thread_mutex_t ) ldap_int_resolv_mutex;
LDAP_V ( ldap_pvt_thread_mutex_t ) ldap_int_hostname_mutex;
-#ifdef HAVE_CYRUS_SASL
-LDAP_V( ldap_pvt_thread_mutex_t ) ldap_int_sasl_mutex;
-#endif
#ifdef HAVE_GSSAPI
LDAP_V( ldap_pvt_thread_mutex_t ) ldap_int_gssapi_mutex;
#endif
char *smechs = NULL;
int rc;
-#if defined( HAVE_CYRUS_SASL )
- LDAP_MUTEX_LOCK( &ldap_int_sasl_mutex );
-#endif
#ifdef LDAP_CONNECTIONLESS
if( LDAP_IS_UDP(ld) ) {
/* Just force it to simple bind, silly to make the user
flags, interact, defaults, result, rmech, msgid );
done:
-#if defined( HAVE_CYRUS_SASL )
- LDAP_MUTEX_UNLOCK( &ldap_int_sasl_mutex );
-#endif
if ( smechs ) LDAP_FREE( smechs );
return rc;
ldap_pvt_thread_mutex_init( &ldap_int_gettime_mutex );
-#ifdef HAVE_CYRUS_SASL
- ldap_pvt_thread_mutex_init( &ldap_int_sasl_mutex );
-#endif
#ifdef HAVE_GSSAPI
ldap_pvt_thread_mutex_init( &ldap_int_gssapi_mutex );
#endif