]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#8699 more for cursor_del ITS#8622
authorHoward Chu <hyc@openldap.org>
Wed, 26 Jul 2017 20:37:40 +0000 (21:37 +0100)
committerHoward Chu <hyc@openldap.org>
Sat, 10 Oct 2020 12:00:16 +0000 (13:00 +0100)
Set C_DEL flag on reinit'd subcursor

libraries/liblmdb/mdb.c

index 95d24803a4474d533e61e29364353c375e045ff3..149899a3b8ee2966ef7b0f7f6901c5dc75f1ac1d 100644 (file)
@@ -9799,8 +9799,10 @@ mdb_cursor_del0(MDB_cursor *mc)
                                                        if (m3->mc_xcursor->mx_cursor.mc_flags & C_INITIALIZED) {
                                                                if (!(node->mn_flags & F_SUBDATA))
                                                                        m3->mc_xcursor->mx_cursor.mc_pg[0] = NODEDATA(node);
-                                                       } else
+                                                       } else {
                                                                mdb_xcursor_init1(m3, node);
+                                                               m3->mc_xcursor->mx_cursor.mc_flags |= C_DEL;
+                                                       }
                                                }
                                        }
                                }