[nginx] svn commit: r4295 - trunk/src/http/modules

vbart at nginx.com vbart at nginx.com
Wed Nov 16 12:51:27 UTC 2011


Author: vbart
Date: 2011-11-16 12:51:27 +0000 (Wed, 16 Nov 2011)
New Revision: 4295

Modified:
   trunk/src/http/modules/ngx_http_scgi_module.c
Log:
Fixed incorrect counting the length of headers in a SCGI request.


Modified: trunk/src/http/modules/ngx_http_scgi_module.c
===================================================================
--- trunk/src/http/modules/ngx_http_scgi_module.c	2011-11-15 20:35:41 UTC (rev 4294)
+++ trunk/src/http/modules/ngx_http_scgi_module.c	2011-11-16 12:51:27 UTC (rev 4295)
@@ -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);
         }
     }



More information about the nginx-devel mailing list