From: Maxim Dounin Date: Wed, 14 Dec 2011 15:28:13 +0000 (+0000) Subject: Merge of r4295: X-Git-Tag: release-1.0.11~6 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/static/gitweb.js?a=commitdiff_plain;h=430aef49ace08d55d59a2cf600af25bdfe6b0482;p=nginx.git Merge of r4295: Fixed incorrect counting the length of headers in a SCGI request. --- 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); } }