From d29d83a80ea1081ea0c6b638ff7a1fe40f07815a Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 14 Dec 2006 19:22:00 +0000 Subject: [PATCH] protect assertion behind mutex (test should be atomic anyway...) --- servers/slapd/connection.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index 7a46410ab5..4534075be1 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -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 */ -- 2.39.5