]> git.sur5r.net Git - openldap/commitdiff
ITS#8313 more for ITS#8062
authorHoward Chu <hyc@openldap.org>
Wed, 18 Nov 2015 21:33:51 +0000 (21:33 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 19 Nov 2015 17:28:23 +0000 (17:28 +0000)
dummy flags must be init'd due to 3d46d550

libraries/liblmdb/mdb.c

index 0c9ab93c5e06aa3a928bddc9750e8210f2c12f85..deeaf9cc37b9b49d8c65e353a806e71697636cd7 100644 (file)
@@ -8055,6 +8055,7 @@ mdb_rebalance(MDB_cursor *mc)
                        mn.mc_ki[mn.mc_top] += mc->mc_ki[mn.mc_top] + 1;
                        /* We want mdb_rebalance to find mn when doing fixups */
                        if (mc->mc_flags & C_SUB) {
+                               dummy.mc_flags = C_INITIALIZED;
                                dummy.mc_next = mc->mc_txn->mt_cursors[mc->mc_dbi];
                                mc->mc_txn->mt_cursors[mc->mc_dbi] = &dummy;
                                dummy.mc_xcursor = (MDB_xcursor *)&mn;