]> git.sur5r.net Git - openldap/commitdiff
Fix cursor logic
authorKurt Zeilenga <kurt@openldap.org>
Tue, 26 Sep 2000 22:28:12 +0000 (22:28 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 26 Sep 2000 22:28:12 +0000 (22:28 +0000)
servers/slapd/back-bdb/search.c

index 7c748142fb8fcfe9c482e7e6ab063d03af3ba881..78a16e48a806fd728c62e02324d87cb6ad77aef2 100644 (file)
@@ -418,10 +418,10 @@ static ID idl_first( ID *ids, ID *cursor )
 static ID idl_next( ID *ids, ID *cursor )
 {
        if ( BDB_IDL_IS_RANGE( ids ) ) {
-               if( ids[2] <= ++(*cursor) ) {
-                       return *cursor;
+               if( ids[2] < ++(*cursor) ) {
+                       return NOID;
                }
-               return NOID;
+               return *cursor;
        }
 
        if ( *cursor < ids[0] ) {