Commit 15573c72 authored by Ondřej Kuzník's avatar Ondřej Kuzník Committed by Quanah Gibson-Mount
Browse files

ITS#9831 Advance connections[index] correctly

parent 47069fee
Pipeline #4282 passed with stage
in 33 minutes and 45 seconds
......@@ -871,13 +871,14 @@ Connection* connection_next( Connection *c, ber_socket_t *index )
for(; *index < dtblsize; (*index)++) {
if( connections[*index].c_sb ) {
c = &connections[(*index)++];
c = &connections[*index];
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;
}
(*index)++;
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