From: Howard Chu Date: Thu, 7 Nov 2013 00:49:25 +0000 (-0800) Subject: Fix cursor_del0 cursor fixup X-Git-Tag: OPENLDAP_REL_ENG_2_4_38~8^2~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4a1717708cf1127c3d5d9f4101af69d67d8296d7;p=openldap Fix cursor_del0 cursor fixup Skip cursors that aren't as deep as current cursor --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 8aee859786..44ce73e8b5 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -7295,6 +7295,8 @@ mdb_cursor_del0(MDB_cursor *mc, MDB_node *leaf) continue; if (!(m2->mc_flags & C_INITIALIZED)) continue; + if (m2->mc_top < mc->mc_top) + continue; if (m2->mc_pg[mc->mc_top] == mp) { if (m2->mc_ki[mc->mc_top] >= ki) { m2->mc_flags |= C_DEL;