From: Howard Chu Date: Mon, 11 Sep 2006 21:19:38 +0000 (+0000) Subject: In connection_next, sockets may not be contiguous on Unix if syslog etc are X-Git-Tag: OPENLDAP_REL_ENG_2_3_MP~169 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3e50687bf7367ec99f6e688203a54bae2124a9f7;p=openldap 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. --- diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index 248b3b67f6..6afc81bbc6 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -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 ) {