]> git.sur5r.net Git - openldap/commitdiff
ITS#8557 fix prev commit
authorHoward Chu <hyc@openldap.org>
Wed, 11 Jan 2017 11:18:57 +0000 (11:18 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 11 Jan 2017 11:18:57 +0000 (11:18 +0000)
libraries/liblmdb/mdb.c

index c84afef4ddffdbd2bc08ff450f5cb6887ba145e7..bb2068fe8de36e2652f77f1458132b507c819045 100644 (file)
@@ -6209,8 +6209,8 @@ mdb_page_search_root(MDB_cursor *mc, MDB_val *key, int flags)
                                /* if already init'd, see if we're already in right place */
                                if (mc->mc_flags & C_INITIALIZED) {
                                        if (mc->mc_ki[mc->mc_top] == i) {
-                                               mp = mc->mc_pg[mc->mc_top];
                                                mc->mc_top = mc->mc_snum++;
+                                               mp = mc->mc_pg[mc->mc_top];
                                                goto ready;
                                        }
                                }