summaryrefslogtreecommitdiffstats
path: root/usr.sbin/nginx/src/http/modules/ngx_http_dav_module.c
diff options
context:
space:
mode:
authorrobert <robert@openbsd.org>2013-01-14 17:08:13 +0000
committerrobert <robert@openbsd.org>2013-01-14 17:08:13 +0000
commit57d57cb0b15c99e0ecf0f2944ae4238d4cb96ed0 (patch)
tree3faa7d39eec844173615758a5bae0e09cb631baf /usr.sbin/nginx/src/http/modules/ngx_http_dav_module.c
parentkroute.c rev 1.69 of ospfd for ospf6d (diff)
downloadwireguard-openbsd-57d57cb0b15c99e0ecf0f2944ae4238d4cb96ed0.tar.xz
wireguard-openbsd-57d57cb0b15c99e0ecf0f2944ae4238d4cb96ed0.zip
update to nginx-1.2.6
Diffstat (limited to 'usr.sbin/nginx/src/http/modules/ngx_http_dav_module.c')
-rw-r--r--usr.sbin/nginx/src/http/modules/ngx_http_dav_module.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr.sbin/nginx/src/http/modules/ngx_http_dav_module.c b/usr.sbin/nginx/src/http/modules/ngx_http_dav_module.c
index dbb17ac3055..a97c60e44de 100644
--- a/usr.sbin/nginx/src/http/modules/ngx_http_dav_module.c
+++ b/usr.sbin/nginx/src/http/modules/ngx_http_dav_module.c
@@ -209,6 +209,11 @@ ngx_http_dav_put_handler(ngx_http_request_t *r)
ngx_ext_rename_file_t ext;
ngx_http_dav_loc_conf_t *dlcf;
+ if (r->request_body == NULL || r->request_body->temp_file == NULL) {
+ ngx_http_finalize_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR);
+ return;
+ }
+
ngx_http_map_uri_to_path(r, &path, &root, 0);
path.len--;