Skip to content
Snippets Groups Projects
Commit e72b5e5c authored by Gary Williams's avatar Gary Williams
Browse files

use mutex to protect connection in connection_destroy until task is complete

parent 2b17be83
No related branches found
No related tags found
No related merge requests found
......@@ -322,6 +322,7 @@ 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;
......@@ -359,6 +360,7 @@ connection_destroy( Connection *c )
}
lber_pvt_sb_destroy( &c->c_sb );
ldap_pvt_thread_mutex_unlock( &connections_mutex );
}
int connection_state_closing( Connection *c )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment