mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-18 18:18:06 -05:00
Apply ITS#302 fix (value with only continuation lines)
This commit is contained in:
parent
effdc6193a
commit
d8114c59ce
1 changed files with 6 additions and 6 deletions
|
|
@ -93,12 +93,6 @@ str_parse_line(
|
|||
s++;
|
||||
}
|
||||
|
||||
/* if no value is present, error out */
|
||||
if ( *s == '\0' ) {
|
||||
Debug( LDAP_DEBUG_PARSE, "parse_line missing value\n", 0,0,0 );
|
||||
return( -1 );
|
||||
}
|
||||
|
||||
/* check for continued line markers that should be deleted */
|
||||
for ( p = s, d = s; *p; p++ ) {
|
||||
if ( *p != CONTINUED_LINE_MARKER )
|
||||
|
|
@ -106,6 +100,12 @@ str_parse_line(
|
|||
}
|
||||
*d = '\0';
|
||||
|
||||
/* if no value is present, error out */
|
||||
if ( *s == '\0' ) {
|
||||
Debug( LDAP_DEBUG_PARSE, "parse_line missing value\n", 0,0,0 );
|
||||
return( -1 );
|
||||
}
|
||||
|
||||
*value = s;
|
||||
if ( b64 ) {
|
||||
stop = strchr( s, '\0' );
|
||||
|
|
|
|||
Loading…
Reference in a new issue