Skip to content
Snippets Groups Projects
Commit c65938ab authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Make sure that four characters, rather than only the first three,

are being analysed in the transaltion to base64.
From: Lucio de Re <lucio@proxima.alt.za>
parent 9db062bb
No related branches found
No related tags found
No related merge requests found
......@@ -111,7 +111,7 @@ str_parse_line(
stop = strchr( s, '\0' );
byte = s;
for ( p = s, *vlen = 0; p < stop; p += 4, *vlen += 3 ) {
for ( i = 0; i < 3; i++ ) {
for ( i = 0; i < 4; i++ ) {
if ( p[i] != '=' && (p[i] & 0x80 ||
b642nib[ p[i] & 0x7f ] > 0x3f) ) {
Debug( LDAP_DEBUG_ANY,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment