From dfc1603c4b4c563c013ea36d0a284648729301d4 Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Sat, 6 May 2017 10:27:16 -0400 Subject: [PATCH] [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 --- src/configfile.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/configfile.c b/src/configfile.c index 75b9a4b8..f0d189da 100644 --- a/src/configfile.c +++ b/src/configfile.c @@ -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;