From cb2734eef028b81c65d27f0d60bb9dc819e87f65 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Tue, 26 Sep 2000 22:28:12 +0000 Subject: [PATCH] Fix cursor logic --- servers/slapd/back-bdb/search.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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] ) { -- 2.39.5