aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_fastcgi_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-03-21 13:30:24 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-03-21 13:30:24 +0000
commite47cad4140ac4194fdedd058be0e25967ff43afd (patch)
tree1c2d0c058596768c3899f82c19ba2e9af99b678a /src/http/modules/ngx_http_fastcgi_module.c
parente7f83eefa2669fd62d38a9e01ccd1834c8a65480 (diff)
downloadnginx-e47cad4140ac4194fdedd058be0e25967ff43afd.tar.gz
nginx-e47cad4140ac4194fdedd058be0e25967ff43afd.zip
fix "zero size buf" if request body file is multiple of 32K and FastCGI is used
Diffstat (limited to 'src/http/modules/ngx_http_fastcgi_module.c')
-rw-r--r--src/http/modules/ngx_http_fastcgi_module.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/modules/ngx_http_fastcgi_module.c b/src/http/modules/ngx_http_fastcgi_module.c
index 34b87f79f..c6159af98 100644
--- a/src/http/modules/ngx_http_fastcgi_module.c
+++ b/src/http/modules/ngx_http_fastcgi_module.c
@@ -723,7 +723,7 @@ ngx_http_fastcgi_create_request(ngx_http_request_t *r)
b->file_pos = file_pos;
file_pos += 32 * 1024;
- if (file_pos > body->buf->file_last) {
+ if (file_pos >= body->buf->file_last) {
file_pos = body->buf->file_last;
next = 1;
}
@@ -735,7 +735,7 @@ ngx_http_fastcgi_create_request(ngx_http_request_t *r)
b->pos = pos;
pos += 32 * 1024;
- if (pos > body->buf->last) {
+ if (pos >= body->buf->last) {
pos = body->buf->last;
next = 1;
}