mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-17 14:00:30 +08:00
Apply Ken McGarrahan's ldif padding fix.
This commit is contained in:
parent
cf50d9436c
commit
ded2194df7
@ -276,12 +276,12 @@ put_type_and_value( char **out, char *t, char *val, int vlen )
|
||||
len = 1;
|
||||
}
|
||||
|
||||
/* get b64 digit from low order 6 bits */
|
||||
*(*out)++ = nib2b64[ (bits & 0xfc0000L) >> 18 ];
|
||||
}
|
||||
|
||||
for ( ; pad > 0; pad-- ) {
|
||||
*(*out - pad) = '=';
|
||||
if( i + pad < 4 ) {
|
||||
/* get b64 digit from low order 6 bits */
|
||||
*(*out)++ = nib2b64[ (bits & 0xfc0000L) >> 18 ];
|
||||
} else {
|
||||
*(*out)++ = '=';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user