summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2020-10-15 00:54:52 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2020-10-19 21:40:14 -0400
commit1cc81b703f9055d27d72e1edefdd3c5d223fb106 (patch)
tree3d3e450920f4b082a34c9c02818b7d1785e7fcbf
parentf973b87ca2f5ae5d3525fc56824b3e6c4fe3d445 (diff)
downloadlighttpd-git-1cc81b703f9055d27d72e1edefdd3c5d223fb106.tar.gz
[mod_webdav] update defaults after worker_init
update defaults after worker_init for config options in global scope (bug on master branch; never released)
-rw-r--r--src/mod_webdav.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mod_webdav.c b/src/mod_webdav.c
index 1ffa2943..d8774686 100644
--- a/src/mod_webdav.c
+++ b/src/mod_webdav.c
@@ -1337,6 +1337,8 @@ SERVER_FUNC(mod_webdav_worker_init)
cpv->vtype = T_CONFIG_LOCAL;
if (!mod_webdav_sqlite3_prep(cpv->v.v, dbname, srv->errh))
return HANDLER_ERROR;
+ /*(update p->defaults after init)*/
+ if (0 == i) p->defaults.sql = cpv->v.v;
}
break;
#endif