Mercurial > hg > nginx-quic
comparison src/http/ngx_http_core_module.c @ 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 | 5e7d590cd704 |
children | 1374ffff9635 |
comparison
equal
deleted
inserted
replaced
2571:5c8d9e3cbd8a | 2572:9c42c19f364a |
---|---|
1686 } | 1686 } |
1687 | 1687 |
1688 last = ngx_copy(path->data, clcf->root.data, clcf->root.len); | 1688 last = ngx_copy(path->data, clcf->root.data, clcf->root.len); |
1689 | 1689 |
1690 } else { | 1690 } else { |
1691 if (ngx_http_script_run(r, path, clcf->root_lengths->elts, ++reserved, | 1691 reserved += alias ? 1 : r->uri.len + 1; |
1692 | |
1693 if (ngx_http_script_run(r, path, clcf->root_lengths->elts, reserved, | |
1692 clcf->root_values->elts) | 1694 clcf->root_values->elts) |
1693 == NULL) | 1695 == NULL) |
1694 { | 1696 { |
1695 return NULL; | 1697 return NULL; |
1696 } | 1698 } |