From: Kurt Zeilenga Date: Mon, 26 Apr 1999 23:56:02 +0000 (+0000) Subject: Don't have connection_state_closing() lock connection. Already locked X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~135 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c9a28026698e0f33d9f6ebb911658efe5389398c;p=openldap Don't have connection_state_closing() lock connection. Already locked by callers. --- diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index 3c65f478bc..3ee0a7d058 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -364,13 +364,12 @@ connection_destroy( Connection *c ) int connection_state_closing( Connection *c ) { + /* connection must be locked by caller */ int state; assert( c != NULL ); assert( c->c_struct_state == SLAP_C_USED ); - ldap_pvt_thread_mutex_lock( &c->c_mutex ); state = c->c_conn_state; - ldap_pvt_thread_mutex_unlock( &c->c_mutex ); assert( state != SLAP_C_INVALID );