Mercurial > hg > nginx
changeset 2572:9c42c19f364a
reserve space for r->uri, the bug has been introduced in r2566
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 18 Mar 2009 12:21:19 +0000 |
parents | 5c8d9e3cbd8a |
children | 1374ffff9635 |
files | src/http/ngx_http_core_module.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_core_module.c Mon Mar 16 11:08:08 2009 +0000 +++ b/src/http/ngx_http_core_module.c Wed Mar 18 12:21:19 2009 +0000 @@ -1688,7 +1688,9 @@ last = ngx_copy(path->data, clcf->root.data, clcf->root.len); } else { - if (ngx_http_script_run(r, path, clcf->root_lengths->elts, ++reserved, + reserved += alias ? 1 : r->uri.len + 1; + + if (ngx_http_script_run(r, path, clcf->root_lengths->elts, reserved, clcf->root_values->elts) == NULL) {