Mercurial > hg > nginx
changeset 5211:ecd762770729
Proxy: clear script engine used to calculate lengths.
Previous code is believed to be safe, but might access uninitialized
memory (e.g., e->quote).
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 15 May 2013 12:23:44 +0400 |
parents | ea2ba6dbe361 |
children | 09dbd363050a |
files | src/http/modules/ngx_http_proxy_module.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_proxy_module.c Mon May 13 17:39:45 2013 +0400 +++ b/src/http/modules/ngx_http_proxy_module.c Wed May 15 12:23:44 2013 +0400 @@ -993,6 +993,8 @@ 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) {