mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-10 06:13:19 -05:00
ITS#4627 fix tool_entry_next
This commit is contained in:
parent
8e30e008c6
commit
c727d5caf7
1 changed files with 2 additions and 3 deletions
|
|
@ -1174,11 +1174,10 @@ static int ldif_tool_entry_close(BackendDB * be) {
|
|||
static ID ldif_tool_entry_next(BackendDB *be)
|
||||
{
|
||||
struct ldif_info *li = (struct ldif_info *) be->be_private;
|
||||
li->li_tool_current += 1;
|
||||
if(li->li_tool_current > li->li_tool_cookie.eind)
|
||||
if(li->li_tool_current >= li->li_tool_cookie.eind)
|
||||
return NOID;
|
||||
else
|
||||
return li->li_tool_current;
|
||||
return ++li->li_tool_current;
|
||||
}
|
||||
|
||||
static ID
|
||||
|
|
|
|||
Loading…
Reference in a new issue