]> git.sur5r.net Git - openldap/commitdiff
ITS#8489 reset cursor EOF flag in cursor_set
authorHoward Chu <hyc@openldap.org>
Wed, 31 Aug 2016 23:41:35 +0000 (00:41 +0100)
committerHallvard Furuseth <hallvard@openldap.org>
Thu, 15 Dec 2016 21:27:33 +0000 (22:27 +0100)
It usually gets done anyway, but one of the fastpath shortcuts
bypassed this step.

libraries/liblmdb/mdb.c

index 246c32eb2fe35a43f22c928d09a56cb993be7b4a..da3593b27d299ce45065754cb1cafdcc3c68846b 100644 (file)
@@ -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;
                                }
                        }