]> 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)
committerHoward Chu <hyc@openldap.org>
Wed, 31 Aug 2016 23:41:35 +0000 (00:41 +0100)
It usually gets done anyway, but one of the fastpath shortcuts
bypassed this step.

libraries/liblmdb/mdb.c

index 32f0a5a881148b74c614c5ee4899831a18cf542b..0110402c5b5bbbdcfb860efa783c759cb4480f52 100644 (file)
@@ -6692,6 +6692,7 @@ mdb_cursor_set(MDB_cursor *mc, MDB_val *key, MDB_val *data,
                                                }
                                        }
                                        rc = 0;
+                                       mc->mc_flags &= ~C_EOF;
                                        goto set2;
                                }
                        }