ITS#8393 fix MDB_GET_BOTH on non-dup record
authorHoward Chu <hyc@openldap.org>
Mon, 28 Mar 2016 00:35:56 +0000 (01:35 +0100)
committerHoward Chu <hyc@openldap.org>
Mon, 28 Mar 2016 00:36:26 +0000 (01:36 +0100)
libraries/liblmdb/mdb.c

index a366b40..acab07b 100644 (file)
@@ -6771,8 +6771,8 @@ set1:
                                if (op == MDB_GET_BOTH || rc > 0)
                                        return MDB_NOTFOUND;
                                rc = 0;
-                               *data = olddata;
                        }
+                       *data = olddata;
 
                } else {
                        if (mc->mc_xcursor)