]> git.sur5r.net Git - openldap/commitdiff
Apply ITS#302 fix (value with only continuation lines)
authorKurt Zeilenga <kurt@openldap.org>
Fri, 24 Sep 1999 02:41:06 +0000 (02:41 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 24 Sep 1999 02:41:06 +0000 (02:41 +0000)
libraries/libldif/line64.c

index 09aa3433fcc349935801a74db46d6d71ba26600c..1ac16d433c189fb536dd44bd6501bf3c30544f12 100644 (file)
@@ -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' );