Browse Source

Fix segfault in mod_expire after failed config parsing (fixes #1992)

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2517 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.23
Stefan Bühler 13 years ago
parent
commit
2f4120b37b
  1. 1
      NEWS
  2. 2
      src/mod_expire.c

1
NEWS

@ -48,6 +48,7 @@ NEWS
* Workaround broken operating systems: check for trailing '/' in filenames (fixes #1989)
* Allow using pcre with cross-compiling (pcre-config got fixed; fixes #1986)
* Add "lighty.req_env" table to mod_magnet for setting/getting environment values for cgi (fixes #1967, thx presbrey)
* Fix segfault in mod_expire after failed config parsing (fixes #1992)
- 1.4.22 - 2009-03-07
* Fix wrong lua type for CACHE_MISS/CACHE_HIT in mod_cml (fixes #533)

2
src/mod_expire.c

@ -62,9 +62,9 @@ FREE_FUNC(mod_expire_free) {
size_t i;
for (i = 0; i < srv->config_context->used; i++) {
plugin_config *s = p->config_storage[i];
if (!s) continue;
array_free(s->expire_url);
free(s);
}
free(p->config_storage);

Loading…
Cancel
Save