]> git.sur5r.net Git - openldap/commitdiff
ITS#8558 fix mdb_load with escaped plaintext
authorHoward Chu <hyc@openldap.org>
Fri, 6 Jan 2017 19:48:58 +0000 (19:48 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 6 Jan 2017 19:50:09 +0000 (19:50 +0000)
libraries/liblmdb/mdb_load.c

index 053cc88d256058a2169e52d585c3b37860a3579e..3d02a46ece6d1587d98303b8deadca1558eff230 100644 (file)
@@ -248,7 +248,8 @@ badend:
                                        c2 += 2;
                                }
                        } else {
-                               c1++; c2++;
+                               /* copies are redundant when no escapes were used */
+                               *c1++ = *c2++;
                        }
                }
        } else {