https://bugs.openldap.org/show_bug.cgi?id=9723
--- Comment #4 from Howard Chu hyc@openldap.org --- (In reply to stephan.j.bircher from comment #3)
Should clearing C_EOF not only happen after a successful mdb_cursor_first()?
The DB has already been determined to be non-empty, which is all that C_EOF is meant to signal.