]> git.sur5r.net Git - openldap/commitdiff
fix bound check (ITS#4449)
authorPierangelo Masarati <ando@openldap.org>
Sat, 1 Apr 2006 15:22:13 +0000 (15:22 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 1 Apr 2006 15:22:13 +0000 (15:22 +0000)
servers/slapd/connection.c

index 300f03b382d52c76b1c54de46d4757a4e019bff2..00abf2182551fcb36ff1d357203c6c9ffe68641e 100644 (file)
@@ -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 );