summaryrefslogtreecommitdiff
path: root/libs/libmdbx
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-10-25 13:00:15 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-10-25 13:00:15 +0300
commita949c9f2b090435ca63de525ee2cd1a79073f08a (patch)
tree30cda465107265cbaa5230cd82faf72a45e4d76b /libs/libmdbx
parent24a7f4bcff2953017070a7610ac3414984bcb0f9 (diff)
fixes #2569 (Miranda uses libmdbx unsafely)
Diffstat (limited to 'libs/libmdbx')
-rw-r--r--libs/libmdbx/src/mdbx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/libmdbx/src/mdbx.c b/libs/libmdbx/src/mdbx.c
index 2fa4734952..bb565a72b7 100644
--- a/libs/libmdbx/src/mdbx.c
+++ b/libs/libmdbx/src/mdbx.c
@@ -8872,6 +8872,9 @@ static void mdbx_cursors_eot(MDBX_txn *txn, unsigned merge) {
MDBX_xcursor *mx;
int i;
+ if (cursors == nullptr)
+ return;
+
for (i = txn->mt_numdbs; --i >= 0;) {
for (mc = cursors[i]; mc; mc = next) {
unsigned stage = mc->mc_signature;