]> git.sur5r.net Git - openldap/commitdiff
Lock (connections_mutex) should be acquired by caller.
authorKurt Zeilenga <kurt@openldap.org>
Thu, 27 May 1999 02:16:39 +0000 (02:16 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 27 May 1999 02:16:39 +0000 (02:16 +0000)
servers/slapd/connection.c

index 1ef66a06e139bfe48ff4c89bfb9bb7a77ff6f015..e06553013719c057a23562820603a25f7741d024 100644 (file)
@@ -324,7 +324,6 @@ connection_destroy( Connection *c )
     assert( c->c_conn_state != SLAP_C_INVALID );
     assert( c->c_ops == NULL );
 
-       ldap_pvt_thread_mutex_lock( &connections_mutex );
     c->c_struct_state = SLAP_C_UNUSED;
     c->c_conn_state = SLAP_C_INVALID;
 
@@ -364,7 +363,6 @@ connection_destroy( Connection *c )
        }
 
        ber_pvt_sb_destroy( c->c_sb );
-       ldap_pvt_thread_mutex_unlock( &connections_mutex );
 }
 
 int connection_state_closing( Connection *c )