diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-09-22 09:44:57 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-09-22 09:44:57 +0000 |
commit | 81fed299cebed79d0a7b60c8ec77d030e227e0e7 (patch) | |
tree | 128b9e8cda977d6ee5f296464c627f87c28f9bc1 /src | |
parent | 70df46f5c55d7c4fd3ee1562c487669dfcc8cd71 (diff) | |
download | nginx-81fed299cebed79d0a7b60c8ec77d030e227e0e7.tar.gz nginx-81fed299cebed79d0a7b60c8ec77d030e227e0e7.zip |
fail if file size was changed
Diffstat (limited to 'src')
-rw-r--r-- | src/core/ngx_output_chain.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/ngx_output_chain.c b/src/core/ngx_output_chain.c index 01f42a191..590da4f45 100644 --- a/src/core/ngx_output_chain.c +++ b/src/core/ngx_output_chain.c @@ -571,9 +571,7 @@ ngx_output_chain_copy_buf(ngx_output_chain_ctx_t *ctx) ngx_log_error(NGX_LOG_ALERT, ctx->pool->log, 0, ngx_read_file_n " read only %z of %O from \"%s\"", n, size, src->file->name.data); - if (n == 0) { - return NGX_ERROR; - } + return NGX_ERROR; } dst->last += n; |