]> git.sur5r.net Git - openldap/commitdiff
Add kludge to get working tests add/populate.
authorKurt Zeilenga <kurt@openldap.org>
Tue, 26 Sep 2000 20:31:34 +0000 (20:31 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 26 Sep 2000 20:31:34 +0000 (20:31 +0000)
servers/slapd/back-bdb/search.c

index d67a89d984bee39adfd7926c5a6770193192ad1a..a4687be4018f90cacbca8e3f4b0d8329a683aeac 100644 (file)
@@ -395,6 +395,8 @@ static ID idl_first( ID *ids, ID *cursor )
        }
 
        if ( BDB_IS_ALLIDS( ids ) ) {
+               /* XXYYZ: quick hack for testing */
+               ids[1] = 100;
                return *cursor;
        }
 
@@ -411,7 +413,7 @@ static ID idl_first( ID *ids, ID *cursor )
 static ID idl_next( ID *ids, ID *cursor )
 {
        if ( BDB_IS_ALLIDS( ids ) ) {
-               if( ++(*cursor) < ids[1] ) {
+               if( ++(*cursor) <= ids[1] ) {
                        return *cursor;
                }
                return NOID;