Proxy: clear script engine used to calculate lengths.

Previous code is believed to be safe, but might access uninitialized
memory (e.g., e->quote).
This commit is contained in:
Maxim Dounin 2013-05-15 12:23:44 +04:00
parent 885861b683
commit 330ebdc8fe

View File

@ -993,6 +993,8 @@ ngx_http_proxy_create_request(ngx_http_request_t *r)
len += uri_len;
ngx_memzero(&le, sizeof(ngx_http_script_engine_t));
ngx_http_script_flush_no_cacheable_variables(r, plcf->flushes);
if (plcf->body_set_len) {