]> git.sur5r.net Git - openldap/commitdiff
Fix 5c1ee7f7ba9580d5ff29e74cbb02eee335c33d94
authorHoward Chu <hyc@symas.com>
Mon, 3 Dec 2012 21:57:46 +0000 (13:57 -0800)
committerHoward Chu <hyc@symas.com>
Mon, 3 Dec 2012 21:57:46 +0000 (13:57 -0800)
mdb_cursor_sibling() no longer pops cursor before returning.

libraries/liblmdb/mdb.c

index 790aebe2cd7756d601549cfb974ade1e6e0c1145..8ce55deabfdeadab38cc8cf50d059a742e1c85c1 100644 (file)
@@ -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; i<mc->mc_top; i++)
                                        mc->mc_pg[i] = mx.mc_pg[i];
                        }