mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-22 15:49:34 -05:00
ITS#302 ldif fix. Treat value with only continuation markers
as an empty value. Complain, of course, as this isn't valid LDIF.
This commit is contained in:
parent
5c876f85e6
commit
3a44abba1a
1 changed files with 7 additions and 7 deletions
|
|
@ -135,6 +135,13 @@ ldif_parse_line(
|
|||
s++;
|
||||
}
|
||||
|
||||
/* check for continued line markers that should be deleted */
|
||||
for ( p = s, d = s; *p; p++ ) {
|
||||
if ( *p != CONTINUED_LINE_MARKER )
|
||||
*d++ = *p;
|
||||
}
|
||||
*d = '\0';
|
||||
|
||||
/* if no value is present, error out */
|
||||
if ( *s == '\0' ) {
|
||||
ber_pvt_log_printf( LDAP_DEBUG_PARSE, ldif_debug,
|
||||
|
|
@ -145,13 +152,6 @@ ldif_parse_line(
|
|||
goto done;
|
||||
}
|
||||
|
||||
/* check for continued line markers that should be deleted */
|
||||
for ( p = s, d = s; *p; p++ ) {
|
||||
if ( *p != CONTINUED_LINE_MARKER )
|
||||
*d++ = *p;
|
||||
}
|
||||
*d = '\0';
|
||||
|
||||
if ( b64 ) {
|
||||
char *byte = s;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue