Mercurial > hg > nginx
changeset 4210:c8f6248566aa
Added clearing of modules' contexts in ngx_http_named_location().
Patch by Yichun Zhang (agentzh).
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Sat, 15 Oct 2011 21:42:03 +0000 |
parents | 9679fc14c063 |
children | effc7962aebe |
files | src/http/ngx_http_core_module.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_core_module.c Thu Oct 13 13:56:41 2011 +0000 +++ b/src/http/ngx_http_core_module.c Sat Oct 15 21:42:03 2011 +0000 @@ -2546,6 +2546,9 @@ r->content_handler = NULL; r->loc_conf = (*clcfp)->loc_conf; + /* clear the modules contexts */ + ngx_memzero(r->ctx, sizeof(void *) * ngx_http_max_module); + ngx_http_update_location_config(r); cmcf = ngx_http_get_module_main_conf(r, ngx_http_core_module);