summaryrefslogtreecommitdiff
path: root/src/mod_access.c
diff options
context:
space:
mode:
authorStefan Bühler <stbuehler@web.de>2015-05-14 09:38:33 +0000
committerStefan Bühler <stbuehler@web.de>2015-05-14 09:38:33 +0000
commit33cebeb0f778d437e1a6070504f588b2531fa291 (patch)
tree0e0e0a4fb84871f3c32b2f1e3f76312264c1274a /src/mod_access.c
parentdf87b3ef98711b6a4ca4cefb1fceec022ddcdc13 (diff)
downloadlighttpd1.4-33cebeb0f778d437e1a6070504f588b2531fa291.tar.gz
lighttpd1.4-33cebeb0f778d437e1a6070504f588b2531fa291.zip
fix segfaults in many plugins if they failed configuration
From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2988 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'src/mod_access.c')
-rw-r--r--src/mod_access.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mod_access.c b/src/mod_access.c
index a6c25a47..e6a9a14f 100644
--- a/src/mod_access.c
+++ b/src/mod_access.c
@@ -40,6 +40,8 @@ FREE_FUNC(mod_access_free) {
for (i = 0; i < srv->config_context->used; i++) {
plugin_config *s = p->config_storage[i];
+ if (NULL == s) continue;
+
array_free(s->access_deny);
free(s);