]> git.sur5r.net Git - openldap/commitdiff
Fix overflow page read
authorHoward Chu <hyc@symas.com>
Fri, 19 Aug 2011 04:58:22 +0000 (21:58 -0700)
committerHoward Chu <hyc@symas.com>
Thu, 1 Sep 2011 23:31:10 +0000 (16:31 -0700)
libraries/libmdb/mdb.c

index 08b3465b2ac67357fbc62ae9f2c63d96387e9f1b..c1fc8cf6eebc2dff4690e5e01153533a65d3699d 100644 (file)
@@ -1740,7 +1740,7 @@ mdb_read_data(MDB_txn *txn, MDB_node *leaf, MDB_val *data)
                DPRINTF("read overflow page %lu failed", pgno);
                return MDB_PAGE_NOTFOUND;
        }
-       data->mv_data = omp;
+       data->mv_data = METADATA(omp);
 
        return MDB_SUCCESS;
 }