From: Howard Chu Date: Wed, 31 Aug 2016 23:41:35 +0000 (+0100) Subject: ITS#8489 reset cursor EOF flag in cursor_set X-Git-Tag: LMDB_0.9.19~21 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=56b81e6d576b82bd8992b1796e4c9d5a4ec12929;p=openldap ITS#8489 reset cursor EOF flag in cursor_set It usually gets done anyway, but one of the fastpath shortcuts bypassed this step. --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 246c32eb2f..da3593b27d 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; } }