]> git.sur5r.net Git - openldap/commitdiff
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 a366b40245f6f83e70440abc460489280b87c6fa..acab07b8294ad9036267be6d40ac19933f669fab 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)