From ea7968160eb1c4885b78ca56997cb6886a876d0e Mon Sep 17 00:00:00 2001 From: manu Date: Wed, 9 Nov 2022 16:50:06 +0000 Subject: [PATCH] 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 --- modules/dav/main/mod_dav.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/modules/dav/main/mod_dav.c b/modules/dav/main/mod_dav.c index f470d1fa9b0..2676b835ee7 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; -- 2.47.2