Skip to content

Commit

Permalink
Recreated tag for version 2.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
vkholodkov committed Dec 20, 2008
2 parents 92d608e + a0a336a commit 376ed87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ngx_http_upload_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,7 @@ static ngx_int_t ngx_http_upload_flush_output_buffer(ngx_http_upload_ctx_t *u, u
ngx_crc32_update(&u->crc32, buf, len);

if(ulcf->max_file_size != 0) {
if(u->output_file.offset + len > ulcf->max_file_size)
if(u->output_file.offset + (off_t)len > ulcf->max_file_size)
return NGX_UPLOAD_TOOLARGE;
}

Expand Down

0 comments on commit 376ed87

Please sign in to comment.