]> git.sur5r.net Git - openldap/commitdiff
fd arrary bound check
authorKurt Zeilenga <kurt@openldap.org>
Wed, 5 Apr 2006 20:08:48 +0000 (20:08 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 5 Apr 2006 20:08:48 +0000 (20:08 +0000)
servers/slapd/connection.c

index 5f01a04362be6de6a37e8394da886225ccbd92f0..7482ed4ce288bac84a840feec8a514db3aa0b820 100644 (file)
@@ -1043,7 +1043,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 );