mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-28 10:39:34 -05:00
In connection_next, sockets may not be contiguous on Unix if syslog etc are
active. Just search to the end of the table, tracking the max isn't worth the lock overhead.
This commit is contained in:
parent
1ab4c624ed
commit
3e50687bf7
1 changed files with 4 additions and 0 deletions
|
|
@ -923,7 +923,11 @@ Connection* connection_next( Connection *c, ber_socket_t *index )
|
|||
int c_struct;
|
||||
if( connections[*index].c_struct_state == SLAP_C_UNINITIALIZED ) {
|
||||
assert( connections[*index].c_conn_state == SLAP_C_INVALID );
|
||||
#ifdef HAVE_WINSOCK
|
||||
break;
|
||||
#else
|
||||
continue;
|
||||
#endif
|
||||
}
|
||||
|
||||
if( connections[*index].c_struct_state == SLAP_C_USED ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue