From d8114c59cef8b515156bf6e54d15a74725e01a98 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 24 Sep 1999 02:41:06 +0000 Subject: [PATCH] Apply ITS#302 fix (value with only continuation lines) --- libraries/libldif/line64.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libraries/libldif/line64.c b/libraries/libldif/line64.c index 09aa3433fc..1ac16d433c 100644 --- a/libraries/libldif/line64.c +++ b/libraries/libldif/line64.c @@ -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' ); -- 2.47.2