mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-06 15:10:22 -05:00
ITS#8412 fix NEXT_DUP after cursor_del
This commit is contained in:
parent
37081325f7
commit
a04aad31c2
1 changed files with 2 additions and 1 deletions
|
|
@ -6417,7 +6417,8 @@ mdb_cursor_next(MDB_cursor *mc, MDB_val *key, MDB_val *data, MDB_cursor_op op)
|
|||
MDB_node *leaf;
|
||||
int rc;
|
||||
|
||||
if (mc->mc_flags & C_EOF) {
|
||||
if ((mc->mc_flags & C_EOF) ||
|
||||
((mc->mc_flags & C_DEL) && op == MDB_NEXT_DUP)) {
|
||||
return MDB_NOTFOUND;
|
||||
}
|
||||
if (!(mc->mc_flags & C_INITIALIZED))
|
||||
|
|
|
|||
Loading…
Reference in a new issue