mirror of
https://github.com/sheumann/hush.git
synced 2024-12-21 23:29:34 +00:00
httpd: allow empty lines in conf file
This commit is contained in:
parent
1cf4a0eb81
commit
00643ca520
@ -546,9 +546,11 @@ static void parse_conf(const char *path, int flag)
|
|||||||
}
|
}
|
||||||
*p = '\0';
|
*p = '\0';
|
||||||
strlen_buf = p - buf;
|
strlen_buf = p - buf;
|
||||||
|
if (strlen_buf == 0)
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* empty or strange line? */
|
/* strange line? */
|
||||||
if (after_colon == NULL || *after_colon == '\0')
|
if (after_colon == NULL || *after_colon == '\0')
|
||||||
goto config_error;
|
goto config_error;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user