aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2009-04-22 13:52:22 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2009-04-22 13:52:22 +0000
commit00643ca5206c7000b6820b2274e01ffa5354ef19 (patch)
treee7ae14796d18bc55f97a68ec607e00635d451782
parent1cf4a0eb81ed85d222d3310c39ac89c84c13ca17 (diff)
downloadbusybox-w32-00643ca5206c7000b6820b2274e01ffa5354ef19.tar.gz
busybox-w32-00643ca5206c7000b6820b2274e01ffa5354ef19.tar.bz2
busybox-w32-00643ca5206c7000b6820b2274e01ffa5354ef19.zip
httpd: allow empty lines in conf file
-rw-r--r--networking/httpd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/networking/httpd.c b/networking/httpd.c
index 243d76f94..794a39ea0 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -546,9 +546,11 @@ static void parse_conf(const char *path, int flag)
546 } 546 }
547 *p = '\0'; 547 *p = '\0';
548 strlen_buf = p - buf; 548 strlen_buf = p - buf;
549 if (strlen_buf == 0)
550 continue;
549 } 551 }
550 552
551 /* empty or strange line? */ 553 /* strange line? */
552 if (after_colon == NULL || *after_colon == '\0') 554 if (after_colon == NULL || *after_colon == '\0')
553 goto config_error; 555 goto config_error;
554 556