mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-28 02:29:34 -05:00
ITS#8190 fix cursor EOF bug
This commit is contained in:
parent
ad87d6a3f4
commit
749633e48a
1 changed files with 3 additions and 1 deletions
|
|
@ -5924,8 +5924,10 @@ set2:
|
|||
|
||||
if (leaf == NULL) {
|
||||
DPUTS("===> inexact leaf not found, goto sibling");
|
||||
if ((rc = mdb_cursor_sibling(mc, 1)) != MDB_SUCCESS)
|
||||
if ((rc = mdb_cursor_sibling(mc, 1)) != MDB_SUCCESS) {
|
||||
mc->mc_flags |= C_EOF;
|
||||
return rc; /* no entries matched */
|
||||
}
|
||||
mp = mc->mc_pg[mc->mc_top];
|
||||
mdb_cassert(mc, IS_LEAF(mp));
|
||||
leaf = NODEPTR(mp, 0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue