From: Howard Chu Date: Mon, 3 Dec 2012 21:57:46 +0000 (-0800) Subject: Fix 5c1ee7f7ba9580d5ff29e74cbb02eee335c33d94 X-Git-Tag: OPENLDAP_REL_ENG_2_4_34~96^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e545b742e5f934c0e68bcccd5e21695d7e0b5bff;p=openldap Fix 5c1ee7f7ba9580d5ff29e74cbb02eee335c33d94 mdb_cursor_sibling() no longer pops cursor before returning. --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 790aebe2cd..8ce55deabf 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -6971,9 +6971,9 @@ mdb_drop0(MDB_cursor *mc, int subs) rc = mdb_cursor_sibling(mc, 1); if (rc) { /* no more siblings, go back to beginning - * of previous level. (stack was already popped - * by mdb_cursor_sibling) + * of previous level. */ + mdb_cursor_pop(mc); for (i=1; imc_top; i++) mc->mc_pg[i] = mx.mc_pg[i]; }