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:
Howard Chu 2006-09-11 21:19:38 +00:00
parent 1ab4c624ed
commit 3e50687bf7

View file

@ -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 ) {