summaryrefslogtreecommitdiffhomepage
path: root/src/http/modules/ngx_http_dav_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-12-07 19:57:13 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-12-07 19:57:13 +0000
commit27dd6a62bd76983e6bdc5c45e108aae816fac761 (patch)
tree105c6ba178513b23dbd41fbb561d42853411ee9f /src/http/modules/ngx_http_dav_module.c
parent03df86a54127aa6ed1c17abb2bae81da5f9deda5 (diff)
downloadnginx-27dd6a62bd76983e6bdc5c45e108aae816fac761.tar.gz
nginx-27dd6a62bd76983e6bdc5c45e108aae816fac761.tar.bz2
use malloc() in ngx_win32_rename_file, set crit level instead of error
Diffstat (limited to 'src/http/modules/ngx_http_dav_module.c')
-rw-r--r--src/http/modules/ngx_http_dav_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_dav_module.c b/src/http/modules/ngx_http_dav_module.c
index 854627c78..b9d01f391 100644
--- a/src/http/modules/ngx_http_dav_module.c
+++ b/src/http/modules/ngx_http_dav_module.c
@@ -295,7 +295,7 @@ ngx_http_dav_put_handler(ngx_http_request_t *r)
#if (NGX_WIN32)
if (err == NGX_EEXIST) {
- if (ngx_win32_rename_file(temp, &path, r->pool) != NGX_ERROR) {
+ if (ngx_win32_rename_file(temp, &path, r->connection->log) == NGX_OK) {
if (ngx_rename_file(temp->data, path.data) != NGX_FILE_ERROR) {
goto ok;