From: Kurt Zeilenga Date: Tue, 26 Sep 2000 22:28:12 +0000 (+0000) Subject: Fix cursor logic X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1877 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cb2734eef028b81c65d27f0d60bb9dc819e87f65;p=openldap Fix cursor logic --- diff --git a/servers/slapd/back-bdb/search.c b/servers/slapd/back-bdb/search.c index 7c748142fb..78a16e48a8 100644 --- a/servers/slapd/back-bdb/search.c +++ b/servers/slapd/back-bdb/search.c @@ -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] ) {