Mercurial > hg > nginx
changeset 4362:8e7bb000ba4a stable-1.0
Merge of r4295:
Fixed incorrect counting the length of headers in a SCGI request.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 14 Dec 2011 15:28:13 +0000 |
parents | 6bfae7032017 |
children | b46cd3ce6278 |
files | src/http/modules/ngx_http_scgi_module.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_scgi_module.c Wed Dec 14 15:25:32 2011 +0000 +++ b/src/http/modules/ngx_http_scgi_module.c Wed Dec 14 15:28:13 2011 +0000 @@ -558,8 +558,10 @@ 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); } }