summaryrefslogtreecommitdiffstats
path: root/modules/dav
diff options
context:
space:
mode:
authormanu <manu@unknown>2022-11-09 17:50:06 +0100
committermanu <manu@unknown>2022-11-09 17:50:06 +0100
commitea7968160eb1c4885b78ca56997cb6886a876d0e (patch)
treed5bb9568ec2f99021a9a0c12edb4e928d2ecd9e6 /modules/dav
parentTurn DavLockDiscovery into a flag (diff)
downloadapache2-ea7968160eb1c4885b78ca56997cb6886a876d0e.tar.xz
apache2-ea7968160eb1c4885b78ca56997cb6886a876d0e.zip
Initialize allow_lockdiscovery as unset
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
Diffstat (limited to 'modules/dav')
-rw-r--r--modules/dav/main/mod_dav.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/modules/dav/main/mod_dav.c b/modules/dav/main/mod_dav.c
index f470d1fa9b..2676b835ee 100644
--- a/modules/dav/main/mod_dav.c
+++ b/modules/dav/main/mod_dav.c
@@ -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;