]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Initialize allow_lockdiscovery as unset
authormanu <manu@unknown>
Wed, 9 Nov 2022 16:50:06 +0000 (16:50 +0000)
committermanu <manu@unknown>
Wed, 9 Nov 2022 16:50:06 +0000 (16:50 +0000)
Removing the initialization means it is set as 0 by apr_pcalloc(), and
0 is DAV_ENABLED_UNSET

That is required to inherit configuration in dav_merge_dir_config()
as pointed out by rpluem@

We only check for allow_lockdiscovery against DAV_ENABLED_OFF, hence
DAV_ENABLED_UNSET is equivalent to DAV_ENABLED_ON, which is required
for backware compatibility sake.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1905206 13f79535-47bb-0310-9956-ffa450edef68

modules/dav/main/mod_dav.c

index f470d1fa9b084a4dfc38dae5d1d59b09a6244b7a..2676b835ee77da7351ac69ec85b38890c4b35e4b 100644 (file)
@@ -160,8 +160,6 @@ static void *dav_create_dir_config(apr_pool_t *p, char *dir)
 
     conf = (dav_dir_conf *)apr_pcalloc(p, sizeof(*conf));
 
-    conf->allow_lockdiscovery = DAV_ENABLED_ON;
-
     /* clean up the directory to remove any trailing slash */
     if (dir != NULL) {
         char *d;