summaryrefslogtreecommitdiffstats
path: root/source3/lib/util_str.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/util_str.c')
-rw-r--r--source3/lib/util_str.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c
index d93f39696f4..822ab206286 100644
--- a/source3/lib/util_str.c
+++ b/source3/lib/util_str.c
@@ -1838,6 +1838,8 @@ DATA_BLOB base64_decode_data_blob(const char *s)
s++; i++;
}
+ if (*s == '=') n -= 1;
+
/* fix up length */
decoded.length = n;
return decoded;