mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-06 15:10:22 -05:00
ITS#4667 fix assert in connection_next() for PENDING connections
This commit is contained in:
parent
4350ce5189
commit
da6a4bcd3e
1 changed files with 5 additions and 1 deletions
|
|
@ -914,6 +914,7 @@ Connection* connection_next( Connection *c, ber_socket_t *index )
|
|||
|
||||
ldap_pvt_thread_mutex_lock( &connections_mutex );
|
||||
for(; *index < dtblsize; (*index)++) {
|
||||
int c_struct;
|
||||
if( connections[*index].c_struct_state == SLAP_C_UNINITIALIZED ) {
|
||||
assert( connections[*index].c_conn_state == SLAP_C_INVALID );
|
||||
break;
|
||||
|
|
@ -936,7 +937,10 @@ Connection* connection_next( Connection *c, ber_socket_t *index )
|
|||
break;
|
||||
}
|
||||
|
||||
assert( connections[*index].c_struct_state == SLAP_C_UNUSED );
|
||||
c_struct = connections[*index].c_struct_state;
|
||||
if ( c_struct == SLAP_C_PENDING )
|
||||
continue;
|
||||
assert( c_struct == SLAP_C_UNUSED );
|
||||
assert( connections[*index].c_conn_state == SLAP_C_INVALID );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue