mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
ITS#8412 fix NEXT_DUP after cursor_del
This commit is contained in:
parent
b46fc3e438
commit
dda2ac0a1b
@ -5641,7 +5641,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 New Issue
Block a user