From 9049efe4933b35250a5406f746731ed9f60db60d Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 14 Jul 2014 09:51:16 -0700 Subject: [PATCH] ITS#7896 fix for mdb_env_map Don't pass non-NULL map address unless MDB_FIXEDMAP was used. --- libraries/liblmdb/mdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index f8c94e3100..4a21242239 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -3841,7 +3841,7 @@ mdb_env_open2(MDB_env *env) env->me_flags |= MDB_RESIZING; } - rc = mdb_env_map(env, meta.mm_address); + rc = mdb_env_map(env, (flags & MDB_FIXEDMAP) ? meta.mm_address : NULL); if (rc) return rc; -- 2.39.5