1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

r7739: fixed an off by one bug in the base64 decoder for ldb ldif

This commit is contained in:
Andrew Tridgell 2005-06-19 01:17:29 +00:00 committed by Gerald (Jerry) Carter
parent ec29a1ffa7
commit fe2b77af23

View File

@ -71,6 +71,9 @@ static int base64_decode(char *s)
}
s++; i++;
}
if (bit_offset >= 3) {
n--;
}
if (*s && !p) {
/* the only termination allowed */