Commit d29d83a8 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

protect assertion behind mutex (test should be atomic anyway...)

parent 28a18681
......@@ -303,10 +303,10 @@ static Connection* connection_get( ber_socket_t s )
if( c != NULL ) {
ber_socket_t sd;
assert( c->c_struct_state != SLAP_C_UNINITIALIZED );
ldap_pvt_thread_mutex_lock( &c->c_mutex );
assert( c->c_struct_state != SLAP_C_UNINITIALIZED );
ber_sockbuf_ctrl( c->c_sb, LBER_SB_OPT_GET_FD, &sd );
if( c->c_struct_state != SLAP_C_USED ) {
/* connection must have been closed due to resched */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment