diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index 300f03b382..00abf21825 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -1075,7 +1075,7 @@ Connection* connection_next( Connection *c, ber_socket_t *index ) assert( connections != NULL ); assert( index != NULL ); - assert( *index >= 0 && *index < MCA_ARRAY_SIZE ); + assert( *index >= 0 && *index <= dtblsize ); if( c != NULL ) ldap_pvt_thread_mutex_unlock( &c->c_mutex );