mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 16:19:35 -05:00
Fix cursor logic
This commit is contained in:
parent
077c47c2a6
commit
cb2734eef0
1 changed files with 3 additions and 3 deletions
|
|
@ -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] ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue