]> 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:48:58 +0000 (19:48 +0000)
libraries/liblmdb/mdb_load.c

index 73dfe8cfd9d50b82aed5d26fcdcfce3c14107559..c421a6980fd09da2274a533c5f0fe2643f13ae24 100644 (file)
@@ -245,7 +245,8 @@ badend:
                                        c2 += 2;
                                }
                        } else {
-                               c1++; c2++;
+                               /* copies are redundant when no escapes were used */
+                               *c1++ = *c2++;
                        }
                }
        } else {