diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2011-10-15 21:42:03 +0000 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2011-10-15 21:42:03 +0000 |
commit | 31f5a59faed561137eba3069834e03a692e584c9 (patch) | |
tree | 547b7302f04a25914ccbead47ebe41afa1028a0f /src | |
parent | ba76a89d4b90fb608cdfa0968c7a3fa324feb665 (diff) | |
download | nginx-31f5a59faed561137eba3069834e03a692e584c9.tar.gz nginx-31f5a59faed561137eba3069834e03a692e584c9.zip |
Added clearing of modules' contexts in ngx_http_named_location().
Patch by Yichun Zhang (agentzh).
Diffstat (limited to 'src')
-rw-r--r-- | src/http/ngx_http_core_module.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index b94376236..c6909cd2e 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -2546,6 +2546,9 @@ ngx_http_named_location(ngx_http_request_t *r, ngx_str_t *name) 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); |