mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
ITS#8321 fix mdb_cursor_chk()
It was reporting spurious errors due to uninit'd cursors
This commit is contained in:
parent
8773a08c43
commit
0ec3967e1d
1 changed files with 1 additions and 1 deletions
|
|
@ -1604,7 +1604,7 @@ mdb_cursor_chk(MDB_cursor *mc)
|
|||
MDB_node *node;
|
||||
MDB_page *mp;
|
||||
|
||||
if (!mc->mc_snum && !(mc->mc_flags & C_INITIALIZED)) return;
|
||||
if (!mc->mc_snum || !(mc->mc_flags & C_INITIALIZED)) return;
|
||||
for (i=0; i<mc->mc_top; i++) {
|
||||
mp = mc->mc_pg[i];
|
||||
node = NODEPTR(mp, mc->mc_ki[i]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue