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:
Kurt Zeilenga 1999-09-24 02:30:33 +00:00
parent 5c876f85e6
commit 3a44abba1a

View file

@ -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;