[core] fix crash for invalid syntax in config file (fixes #2810)

fix crash for invalid syntax in config file for server.modules

x-ref:
  "Missing array entry type check in config_insert (configfile.c), SIGSEGV"
  https://redmine.lighttpd.net/issues/2810
personal/stbuehler/mod-csrf
Glenn Strauss 6 years ago
parent 9752620792
commit dfc1603c4b

@ -393,9 +393,7 @@ static int config_insert(server *srv) {
log_error_write(srv, __FILE__, __LINE__, "s",
"unexpected value for server.modules; expected list of \"mod_xxxxxx\" strings");
ret = HANDLER_ERROR;
}
{
} else {
data_string *ds;
int prepend_mod_indexfile = 1;
int append_mod_dirlisting = 1;

Loading…
Cancel
Save