From fe0a05c1829ba239066caeb6ad8307f47fa703df Mon Sep 17 00:00:00 2001 From: Greg Stein Date: Thu, 23 Nov 2000 10:08:19 +0000 Subject: [PATCH] *) fix subtle crasher in COPY method *) update sub-request-creation calls to include new "next filter" arg git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87072 13f79535-47bb-0310-9956-ffa450edef68 --- modules/dav/main/mod_dav.c | 4 ++-- modules/dav/main/util.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/dav/main/mod_dav.c b/modules/dav/main/mod_dav.c index 9a98e63572..df7c683087 100644 --- a/modules/dav/main/mod_dav.c +++ b/modules/dav/main/mod_dav.c @@ -774,7 +774,7 @@ static int dav_method_get(request_rec *r) pathname = ap_os_case_canonical_filename(r->pool, pathname); /* Create a sub-request with the new filename */ - new_req = ap_sub_req_lookup_file(pathname, r); + new_req = ap_sub_req_lookup_file(pathname, r, NULL); if (new_req == NULL) { (*resource->hooks->free_file)(fhandle); return HTTP_INTERNAL_SERVER_ERROR; @@ -2077,7 +2077,7 @@ static int dav_method_mkcol(request_rec *r) static int dav_method_copymove(request_rec *r, int is_move) { dav_resource *resource; - dav_auto_version_info src_av_info; + dav_auto_version_info src_av_info = { 0 }; dav_resource *resnew; dav_auto_version_info dst_av_info; const char *body; diff --git a/modules/dav/main/util.c b/modules/dav/main/util.c index c845a6422e..e4946d9a89 100644 --- a/modules/dav/main/util.c +++ b/modules/dav/main/util.c @@ -275,7 +275,7 @@ dav_lookup_result dav_lookup_uri(const char *uri, request_rec * r) * same HTTP method on the destination. This allows the destination * to apply appropriate restrictions (e.g. readonly). */ - result.rnew = ap_sub_req_method_uri(r->method, new_file, r); + result.rnew = ap_sub_req_method_uri(r->method, new_file, r, NULL); return result; } -- 2.40.0