summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/common
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-06-19 01:17:29 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:18:28 -0500
commit814d5a5011038164dd55dd9e593989f69cedef0d (patch)
treee0f2d28399f4666a72b4b7a03e579eed629e921f /source4/lib/ldb/common
parent72acf91d444810cf468ca452e82ab041c0ac842a (diff)
downloadsamba-814d5a5011038164dd55dd9e593989f69cedef0d.tar.gz
samba-814d5a5011038164dd55dd9e593989f69cedef0d.tar.bz2
samba-814d5a5011038164dd55dd9e593989f69cedef0d.zip
r7739: fixed an off by one bug in the base64 decoder for ldb ldif
(This used to be commit fe2b77af2352f1964402a4286105916e990dc36f)
Diffstat (limited to 'source4/lib/ldb/common')
-rw-r--r--source4/lib/ldb/common/ldb_ldif.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/lib/ldb/common/ldb_ldif.c b/source4/lib/ldb/common/ldb_ldif.c
index 546cf461f8..225fa3f3c9 100644
--- a/source4/lib/ldb/common/ldb_ldif.c
+++ b/source4/lib/ldb/common/ldb_ldif.c
@@ -71,6 +71,9 @@ static int base64_decode(char *s)
}
s++; i++;
}
+ if (bit_offset >= 3) {
+ n--;
+ }
if (*s && !p) {
/* the only termination allowed */