Skip to content
Snippets Groups Projects
Commit c727d5ca authored by Howard Chu's avatar Howard Chu
Browse files

ITS#4627 fix tool_entry_next

parent 8e30e008
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment