Commit bebfe2b0 authored by Ondřej Kuzník's avatar Ondřej Kuzník
Browse files

ITS#9831 Advance connections[index] correctly

parent 6657caaa
Pipeline #4269 passed with stage
in 46 minutes and 58 seconds
......@@ -869,13 +869,12 @@ Connection* connection_next( Connection *c, ber_socket_t *index )
c = NULL;
for(; *index < dtblsize; (*index)++) {
if( connections[*index].c_sb ) {
c = &connections[(*index)++];
for(; *index < dtblsize; c=NULL) {
c = &connections[(*index)++];
if( c->c_sb ) {
ldap_pvt_thread_mutex_lock( &c->c_mutex );
if ( c->c_conn_state == SLAP_C_INVALID ) {
ldap_pvt_thread_mutex_unlock( &c->c_mutex );
c = NULL;
continue;
}
break;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment