From 56b81e6d576b82bd8992b1796e4c9d5a4ec12929 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 1 Sep 2016 00:41:35 +0100 Subject: [PATCH] ITS#8489 reset cursor EOF flag in cursor_set It usually gets done anyway, but one of the fastpath shortcuts bypassed this step. --- libraries/liblmdb/mdb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 246c32e..da3593b 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -5928,6 +5928,7 @@ mdb_cursor_set(MDB_cursor *mc, MDB_val *key, MDB_val *data, } } rc = 0; + mc->mc_flags &= ~C_EOF; goto set2; } }