]> git.sur5r.net Git - openldap/commitdiff
In connection_next, sockets may not be contiguous on Unix if syslog etc are
authorHoward Chu <hyc@openldap.org>
Mon, 11 Sep 2006 21:19:38 +0000 (21:19 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 11 Sep 2006 21:19:38 +0000 (21:19 +0000)
active. Just search to the end of the table, tracking the max isn't worth
the lock overhead.

servers/slapd/connection.c

index 248b3b67f6a25d4ca6d9f0aa174a71e392cd2b3b..6afc81bbc6d3bfeb961f5b5960105ac8fba8c19d 100644 (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 ) {