[core] fix crash if invalid config file (fixes #2798)
commit1485cb401b308cd8b0e477c8974a0d99f9e5d879
authorGlenn Strauss <gstrauss@gluelogic.com>
Mon, 13 Mar 2017 22:50:15 +0000 (13 18:50 -0400)
committerGlenn Strauss <gstrauss@gluelogic.com>
Mon, 13 Mar 2017 23:30:09 +0000 (13 19:30 -0400)
tree603c01d36ceb9dc26fea5d5bdce1c9880128b60c
parent46ff978fa0d2824db0b2218950be82e42bed8412
[core] fix crash if invalid config file (fixes #2798)

If lighttpd.conf is invalid, some modules may not have initialized their
per-context config structures, but will have their free-functions
called, which should not be run on uninitialized per-context configs.

x-ref:
  "Segfault with simple-vhost.debug = "enable""
  https://redmine.lighttpd.net/issues/2798
src/mod_openssl.c
src/mod_simple_vhost.c
src/mod_status.c