}
/* Set the bindop for the benefit of in-directory SASL lookups */
- ldap_pvt_thread_mutex_lock( &conn->c_sasl_bindmutex );
conn->c_sasl_bindop = op;
if ( method == LDAP_AUTH_SASL ) {
}
cleanup:
- if( conn->c_sasl_bindop != NULL ) {
- conn->c_sasl_bindop = NULL;
- ldap_pvt_thread_mutex_unlock( &conn->c_sasl_bindmutex );
- }
+ conn->c_sasl_bindop = NULL;
if( pdn.bv_val != NULL ) {
free( pdn.bv_val );
ber_sockbuf_free( connections[i].c_sb );
ldap_pvt_thread_mutex_destroy( &connections[i].c_mutex );
ldap_pvt_thread_mutex_destroy( &connections[i].c_write_mutex );
- ldap_pvt_thread_mutex_destroy( &connections[i].c_sasl_bindmutex );
ldap_pvt_thread_cond_destroy( &connections[i].c_write_cv );
}
}
/* should check status of thread calls */
ldap_pvt_thread_mutex_init( &c->c_mutex );
ldap_pvt_thread_mutex_init( &c->c_write_mutex );
- ldap_pvt_thread_mutex_init( &c->c_sasl_bindmutex );
ldap_pvt_thread_cond_init( &c->c_write_cv );
c->c_struct_state = SLAP_C_UNUSED;
void *c_sasl_context; /* SASL session context */
void *c_sasl_extra; /* SASL session extra stuff */
struct slap_op *c_sasl_bindop; /* set to current op if it's a bind */
- ldap_pvt_thread_mutex_t c_sasl_bindmutex; /* lock for bindop */
PagedResultsState c_pagedresults_state; /* paged result state */