]> 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>
Wed, 4 May 2016 09:44:46 +0000 (10:44 +0100)
libraries/liblmdb/mdb.c

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