From: Howard Chu Date: Wed, 12 Jun 2013 15:41:32 +0000 (-0700) Subject: Partial revert c2cac4588a40480c020d320b544bc5f8e72adb11 X-Git-Tag: OPENLDAP_REL_ENG_2_4_36~36^2~22 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2d0b362b6f2b1247eb693008a39efaf341f15e82;p=openldap Partial revert c2cac4588a40480c020d320b544bc5f8e72adb11 MDB_NEXT was fine before, duh. --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 3f314f4cf2..2f6a02735f 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -4947,11 +4947,9 @@ fetchm: case MDB_NEXT: case MDB_NEXT_DUP: case MDB_NEXT_NODUP: - if (!(mc->mc_flags & C_INITIALIZED)) { + if (!(mc->mc_flags & C_INITIALIZED)) rc = mdb_cursor_first(mc, key, data); - if (rc) - break; - } else + else rc = mdb_cursor_next(mc, key, data, op); break; case MDB_PREV: