Skip to content
Browse files

Fixed bug: output file was not closed when ranges were merged success…

…fuly
  • Loading branch information...
1 parent d5c84f3 commit 7de7261dad0ced0fca95e22b23d43c8dc15499c7 Valery Kholodkov committed Aug 2, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 ngx_http_upload_module.c
View
2 ngx_http_upload_module.c
@@ -1709,7 +1709,7 @@ ngx_http_upload_merge_ranges(ngx_http_upload_ctx_t *u, ngx_http_upload_range_t *
result = ftruncate(state_file->fd, out_buf.file_pos);
}
- return ms.complete_ranges ? NGX_OK : NGX_AGAIN;
+ rc = ms.complete_ranges ? NGX_OK : NGX_AGAIN;
failed:
ngx_unlock_fd(state_file->fd);

0 comments on commit 7de7261

Please sign in to comment.
Something went wrong with that request. Please try again.