From: Howard Chu Date: Thu, 5 Dec 2013 02:42:49 +0000 (-0800) Subject: Fix GET_BOTH_RANGE X-Git-Tag: OPENLDAP_REL_ENG_2_4_39~21^2~29 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1ffb5e1cba200b0e362d1f7a56f09f8ad8081451;p=openldap Fix GET_BOTH_RANGE On near match, return the matched data. --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 46e4490c47..58dd90515e 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -5358,6 +5358,7 @@ set1: if (op == MDB_GET_BOTH || rc > 0) return MDB_NOTFOUND; rc = 0; + *data = d2; } } else {