aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_scgi_module.c
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2011-11-16 12:51:27 +0000
committerValentin Bartenev <vbart@nginx.com>2011-11-16 12:51:27 +0000
commit963315aca0a62355eff8240066a0ac1182de428f (patch)
tree0e0696adbcb13eb9d43534e0960ca33d06a43d2c /src/http/modules/ngx_http_scgi_module.c
parent2b24a67268b55c27f4577f5c7328233ba82025ee (diff)
downloadnginx-963315aca0a62355eff8240066a0ac1182de428f.tar.gz
nginx-963315aca0a62355eff8240066a0ac1182de428f.zip
Fixed incorrect counting the length of headers in a SCGI request.
Diffstat (limited to 'src/http/modules/ngx_http_scgi_module.c')
-rw-r--r--src/http/modules/ngx_http_scgi_module.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_scgi_module.c b/src/http/modules/ngx_http_scgi_module.c
index 1feac713b..168f497ce 100644
--- a/src/http/modules/ngx_http_scgi_module.c
+++ b/src/http/modules/ngx_http_scgi_module.c
@@ -558,8 +558,10 @@ ngx_http_scgi_create_request(ngx_http_request_t *r)
while (*(uintptr_t *) le.ip) {
lcode = *(ngx_http_script_len_code_pt *) le.ip;
- len += lcode(&le) + 1;
+ len += lcode(&le);
}
+ len++;
+
le.ip += sizeof(uintptr_t);
}
}