httpd: allow empty lines in conf file
authorDenis Vlasenko <vda.linux@googlemail.com>
Wed, 22 Apr 2009 13:52:22 +0000 (13:52 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Wed, 22 Apr 2009 13:52:22 +0000 (13:52 -0000)
networking/httpd.c

index 243d76f94a71ae8a7e83967e00073fb0a4167ce6..794a39ea05608b0b0ac92accacd3905b3017171c 100644 (file)
@@ -546,9 +546,11 @@ static void parse_conf(const char *path, int flag)
                        }
                        *p = '\0';
                        strlen_buf = p - buf;
+                       if (strlen_buf == 0)
+                               continue;
                }
 
-               /* empty or strange line? */
+               /* strange line? */
                if (after_colon == NULL || *after_colon == '\0')
                        goto config_error;