]> git.sur5r.net Git - openldap/commitdiff
Fix GET_BOTH_RANGE
authorHoward Chu <hyc@symas.com>
Thu, 5 Dec 2013 02:42:49 +0000 (18:42 -0800)
committerHoward Chu <hyc@symas.com>
Thu, 5 Dec 2013 02:42:49 +0000 (18:42 -0800)
On near match, return the matched data.

libraries/liblmdb/mdb.c

index 46e4490c47b352fea77e00b1bde8ed2c0665068f..58dd90515ee3a05273d2bb37508985e0f36388eb 100644 (file)
@@ -5358,6 +5358,7 @@ set1:
                                if (op == MDB_GET_BOTH || rc > 0)
                                        return MDB_NOTFOUND;
                                rc = 0;
+                               *data = d2;
                        }
 
                } else {