mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 08:39:37 -05:00
Don't have connection_state_closing() lock connection. Already locked
by callers.
This commit is contained in:
parent
51fba2644a
commit
c9a2802669
1 changed files with 1 additions and 2 deletions
|
|
@ -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 );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue