summaryrefslogtreecommitdiff
path: root/src/mod_webdav.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mod_webdav.c')
-rw-r--r--src/mod_webdav.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mod_webdav.c b/src/mod_webdav.c
index 29e51eb0..ffb46f24 100644
--- a/src/mod_webdav.c
+++ b/src/mod_webdav.c
@@ -3566,8 +3566,7 @@ webdav_has_lock (connection * const con,
/* XXX: maybe add config switch to require that authentication occurred? */
buffer owner = { NULL, 0, 0 };/*owner (not authenticated)(auth_user unset)*/
const data_string * const authn_user = (const data_string *)
- array_get_element_klen(con->environment,
- CONST_STR_LEN("REMOTE_USER"));
+ array_get_element_klen(&con->environment, CONST_STR_LEN("REMOTE_USER"));
cbdata.authn_user = authn_user ? &authn_user->value : &owner;
const buffer * const h =
@@ -5170,7 +5169,7 @@ mod_webdav_lock (connection * const con, const plugin_config * const pconf)
/* XXX: maybe add config switch to require that authentication occurred? */
buffer owner = { NULL, 0, 0 };/*owner (not authenticated)(auth_user unset)*/
const data_string * const authn_user = (const data_string *)
- array_get_element_klen(con->environment, CONST_STR_LEN("REMOTE_USER"));
+ array_get_element_klen(&con->environment, CONST_STR_LEN("REMOTE_USER"));
/* future: make max timeout configurable (e.g. pconf->lock_timeout_max)
*
@@ -5465,7 +5464,7 @@ mod_webdav_unlock (connection * const con, const plugin_config * const pconf)
buffer owner = { NULL, 0, 0 };/*owner (not authenticated)(auth_user unset)*/
const data_string * const authn_user = (const data_string *)
- array_get_element_klen(con->environment, CONST_STR_LEN("REMOTE_USER"));
+ array_get_element_klen(&con->environment, CONST_STR_LEN("REMOTE_USER"));
webdav_lockdata lockdata = {
{ h->ptr+1, h->used-2, 0 }, /* locktoken (remove < > around token) */