From e5867e2f3006ec60571d24235f5ba5ffb268a180 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sun, 16 Nov 2008 23:58:46 +0000 Subject: [PATCH] improve previous commit (ITS#5814) --- 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 8d4db23427..22dbd8513e 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -423,8 +423,8 @@ Connection * connection_init( if ( flags & CONN_IS_CLIENT ) { c->c_connid = 0; - c->c_conn_state = SLAP_C_CLIENT; ldap_pvt_thread_mutex_lock( &connections_mutex ); + c->c_conn_state = SLAP_C_CLIENT; c->c_struct_state = SLAP_C_USED; ldap_pvt_thread_mutex_unlock( &connections_mutex ); c->c_close_reason = "?"; /* should never be needed */ @@ -510,8 +510,8 @@ Connection * connection_init( id = c->c_connid = conn_nextid++; ldap_pvt_thread_mutex_unlock( &conn_nextid_mutex ); - c->c_conn_state = SLAP_C_INACTIVE; ldap_pvt_thread_mutex_lock( &connections_mutex ); + c->c_conn_state = SLAP_C_INACTIVE; c->c_struct_state = SLAP_C_USED; ldap_pvt_thread_mutex_unlock( &connections_mutex ); c->c_close_reason = "?"; /* should never be needed */ -- 2.39.5